Home > DeveloperSection > Interviews > How do you give a Windows service specific permissions?

Posted on    November-09-2011 12:51 AM

 C# C# 
 1 Answer(s)
  1668  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

Posted on    November-09-2011 1:00 AM

Windows service always runs under someone’s identity. Can be System or Administrator account, but if you want to restrict the behavior of a Windows service, the best bet is to create a new user account, assign and deny necessary privileges to that account, and then associate the Windows service with that new account.

Don't want to miss updates? Please click the below button!

Follow MindStick