windows-server-2008

Delphi Win32 Service “Printer Selected is not valid” error on 2008 64bit standard server

假如想象 提交于 2019-12-04 09:57:52
I have developed a simple win 32 service in delphi 7 which performs some print operations. All works fine on our XP machines, but fails on the target Windows 2008 standard server . When I put a try except block around the print statement, it results in the "Printer Selected is not valid" error. When I check the Printer object for count of printers and event write out all the printers available in the Printer object to a file, it works fine. Only when I try to perform a print (on any printer local and network), it fails. Based on lot of research using google, I found quite a few suggestions to

Inspect.exe missing in Windows SDK for Server 2008

自作多情 提交于 2019-12-04 09:46:30
问题 The Windows SDK for Server 2008 does not include Inspect.exe. Does anyone know where I might find a copy of Inspect.exe or AccExplorer32.exe? I'm running the 64 bit version of Windows Server 2008 R2. 回答1: Solution: Download the Microsoft Windows SDK for Windows 7 and .NET Framework 4 (ISO) Unzip using 7Zip or a similar archive tool Navigate to Setup\WinSDKTools Open cab1.cab (this is just like a .zip file, any archving tool should be able to open it) Locate WinSDK_Inspect_exe_x86 , extract it

How to index Word 2003, 2007 and 2010 documents using Lucene.NET

旧城冷巷雨未停 提交于 2019-12-04 09:40:01
问题 I am writing a custom Lucene.NET indexer to enable indexing of MS Word documents. The indexer must be capable of handling last three releases of MS Word: 2010, 2007 and 2003. The plan is to use VSTO interop assemblies that are installed as part of VS2010 to extract text content from the documents. Is there a better way to implement Word document indexing? Does this mean I will have to install all three versions of Word on the server? Or just Word 2010? Tools/Environment: Lucene.NET 2.3.1.3

Which is better to use for a recurring job: Service or Scheduled Task?

寵の児 提交于 2019-12-04 09:13:31
I have a task that needs to run every 30 seconds. I can do one of two things: Write a command line app that runs the task once, waits 30 seconds, runs it again and then exits. I can schedule this task with Scheduled Tasks in Windows to run every minute Write a Service that runs a task repeatedly while waiting 30 seconds in between each run. Number 1 is more trivial, in my opinion and I would opt to do it this way by default. Am I wimping out? Is there a reason why I should make this a Service and not a scheduled task? What are the pros and cons of both and which would you pick in the end? 1800

C# code to automatically give IIS write access to a folder on Windows Server 2008? Currently throws exception

一曲冷凌霜 提交于 2019-12-04 08:27:00
I am trying to write a command line tool that will give IIS7.5 on windows server 2008 write access to a folder in the wwwroot, so that a web application has access to write to a specific folder within it's base directory. Formerly, you would do this by assigning the IIS_WPG group on the folder giving that group Modify access. In Server 2008 I'm trying to do the same thing with IIS_IUSRS, but an exception is ocurring. Here is the code: private static void ManagePermissions(string directory, string account, FileSystemRights rights, AccessControlType controlType, bool addAccess) { DirectoryInfo

MSDeploy.exe can connect as Administrator, but not any other Windows account

时光怂恿深爱的人放手 提交于 2019-12-04 08:24:39
问题 I'm integrating MSDeploy into my build process, and having problems authenticating. The following command works fine: msdeploy -verb:sync -source:appHostConfig="KitchenPC",computerName=192.168.0.3,userName=Administrator,password=secret -dest:package=c:\DeployTest\KPC.zip However, this does NOT work: msdeploy -verb:sync -source:appHostConfig="KitchenPC",computerName=192.168.0.3,userName=kpcpublish,password=secret -dest:package=c:\DeployTest\KPC.zip And yields the error: Error Code: ERROR_USER

How can I enable the Windows Server Task Scheduler History recording?

半城伤御伤魂 提交于 2019-12-04 07:48:00
问题 I have a Windows Server 2008 with scheduled tasks running, mainly .bat files calling PHP files. I have 2 users on the server, one Admin and the other is a Standard user. I used the Standard User to clear the history log in the Task Scheduler History tab using the Event Viewer. Now it won't record any history anymore. All of the scheduled tasks no longer have history in the History tab. However, the Last Run Result returns 0x0 and the schedulers are working fine. Please advise. 回答1: Step 1:

batch script to send email

ぃ、小莉子 提交于 2019-12-04 07:17:28
How to write a Windows batch script to send a mail? Give an example Robin Salih You will need to use a third party tool such as blat ( http://www.blat.net/ ). Then in your batch file, you would have a line like the following: blat -to foo@bar.com -f bar@foo.com -subject "Email Subject" -body "Email body" -server mysmtphost You can enable the installed SMTP Server of Windows. And then run a power shell script: $subject = $args[0] # Create from/to addresses $from = New-Object system.net.mail.MailAddress "remy@supertext.ch" $to = New-Object system.net.mail.MailAddress "remy.blaettler@gmail.com" #

Unable to install Windows Web Services API for Remote Debugging with VS2012

我与影子孤独终老i 提交于 2019-12-04 05:55:53
I'm trying to remote debug using visual studio 2012 and windows server 2008 not R2. I recieve the following error when setting up the remote debugger. Has anyone else been able to install 2012 remote debugger on Windows server 2008 that is not R2? This is the full error message after I hit configure remote debugging. According to VS 2012 system requirements remote debugging is not supported on Windows Server 2008. At this MS forum post Brad Sullivan the Program Manager for Visual Studio Debugger has posted the following: There is a known issue in the installer for Remote Tools for Visual

Getting blank value for $_SERVER['AUTH_USER']

柔情痞子 提交于 2019-12-04 05:00:32
I have a PHP app running on Windows 2008 server R2, which authenticates users against Active Directory using PHP's LDAP library. As per this answer , I'm looking to use $_SERVER['AUTH_USER'] , but I'm getting a blank value for it. Same for AUTH_TYPE and AUTH_PASSWORD . The variables are declared, but none of them have any value assigned to them. I've enabled both the Basic Authentication and Windows Authentication roles (through Server Manager), but neither has solved the issue. I'm using PHP 5.3.14, Zend Server CE and IIS 7.5. I need to apply a single sign on solution, but without being able