0

I'm also search the web for this, but I'm curious if anyone is aware of a Group policy that allows a user to install a service and only Install services or potential install it through Group policy. Thanks in advance

Jesse
  • 1,846
  • 2
  • 22
  • 32

1 Answers1

1

you need to use something like elevating privilege

WindowsIdentity identity = new WindowsIdentity(accessToken); WindowsImpersonationContext context = identity.Impersonate();

see thread: Elevating process privilege programmatically?

Community
  • 1
  • 1
cpoDesign
  • 8,953
  • 13
  • 62
  • 106
  • Thanks, you know I had not thought of doing something like this. – Jesse Mar 07 '11 at 21:11
  • So will elevating privileges allow me to install as a user without local admin or will I have to provide credentials to a administrator account? – Jesse Mar 07 '11 at 21:52