Re: [ADVANCED-DOTNET] System.Security -- policy

2006-12-28 Thread Alex Smotritsky
ROTECTED] On Behalf Of Peter Ritchie Sent: Thursday, December 28, 2006 1:03 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] System.Security -- policy I believe you will have to PInvoke the LsaEnumerateAccountRights function to see if an account has that privile

Re: [ADVANCED-DOTNET] System.Security -- policy

2006-12-28 Thread Peter Ritchie
I believe you will have to PInvoke the LsaEnumerateAccountRights function to see if an account has that privilege. Use LsaAddAccountRights function to add a privilege to an account. The privilege in question is "SeServiceLogonRight". http://www.pinvoke.net/default.aspx/advapi32/LsaEnumerateAccou

[ADVANCED-DOTNET] System.Security -- policy

2006-12-28 Thread Alex Smotritsky
I'm looking for a way to determine if a user has the "Log on as a service" policy assigned to them and if not then to attempt to assign it. === This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage yo