edit local security policy using vb.Net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to edit the local security policy of Windows 2000 machines to disable
access for the local Administrator account. How can I programmaticly edit
the local security policy using vb.Net? I have looked at using Group Policy,
but I must specify each machine name before the account name to make it work.
Group Policy won't allow me to do that from the server. Is there something
that I am missing?
 
Hi treymitchell,

Thanks for your post.

Yes, there is no build-in support in .Net for modifying the Local Security
Policy. We have to p/invoke LSA api to get this done. For more information,
please refer to the article below:
http://www.thecodeproject.com/csharp/lsadotnet.asp

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi treymitchell,

Does my reply make sense to you? If you still have any concern, please feel
free to tell me, thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top