Windows Service doesn't make event logs on Windows Server 2003 due to insufficient rights
-
Hi everyone, I have a Windows service that I made on my PC here which has Win XP pro on it and it creates some event logs. It runs fine here but now when I'm trying to deploy it on Staging environment where we have Windows Server 2003, it just doesn't run cause it need the administrative rights for it. Can any one tell me how to tackle this situation. Is there a way to impersonate the Windows Service or anything else? Any help would be greatly appreciated. Regards,
Rocky My Blog
-
Hi everyone, I have a Windows service that I made on my PC here which has Win XP pro on it and it creates some event logs. It runs fine here but now when I'm trying to deploy it on Staging environment where we have Windows Server 2003, it just doesn't run cause it need the administrative rights for it. Can any one tell me how to tackle this situation. Is there a way to impersonate the Windows Service or anything else? Any help would be greatly appreciated. Regards,
Rocky My Blog
Open the configuration screen, and go to the administrative tools. From there, open the "Services" MSC. Find your service in the list, rightclick it and select "Properties". The second tabpage (called Log On) lets you specify the user-account under which the service should run. Good luck :)
I are troll :)
-
Open the configuration screen, and go to the administrative tools. From there, open the "Services" MSC. Find your service in the list, rightclick it and select "Properties". The second tabpage (called Log On) lets you specify the user-account under which the service should run. Good luck :)
I are troll :)