Local Security Policy

From: Justin (nospam_at_developmentnow.com)
Date: 06/17/05


Date: Fri, 17 Jun 2005 15:16:04 GMT

I am currently working on a windows app in C# that when given a computer's
name needs to check local security policies on that computer across the
server. Some of the policies I would like to check are the auditing
policies, such as "Audit Logon Events" and "Audit Policy Change," etc, I
would like to be able to retrieve whether these policies are set to "Success"
or "Failure" on the remote computer. Also I would like to check the "user
rights assignment," such as "Access this computer from the network," etc.,
for these policies I would like to retrieve who the policies are limited to,
i.e. Admin, users. And finally I would like to access the "Security
Options," to check and see if the guest account is disabled, for example. I
would like to be able to enter and computer name and have the program check
all of the settings on that computer and create a log of those settings that
are incorrect.

I am still fairly new to C# and have never done any programming dealing with
LSA or WMI stuff, so any help is greatly appreciated. I have been doing
internet searches for help on this topic for several days now, and would love
it if I could get some of this working. The ideal situation would be to have
the ability to change the settings on the remote computer if they are not set
properly, however I would be happy if I could just figure out how to access
them and read them. Any help (internet sources, recommended books, example
code, etc.) would be great. I personally learn best from examples of the
functions being used but like I said I would appreciate any help. I am
currently using a System.ManagementObject to determine the operating system
and confirm the pc name of the remote computer, and have been able to check
policies such as the "Maximum Password Age," "Lockout Threshold," etc. using
a DirectoryEntry and LDAP. So I have had a few successes but I have been
stuck on checking the previous policies. Please let me know if it is
possible to remotely check these security policies and what I need to use to
do it, whether it is WMI, LSA, System.Management stuff, etc. I have tried
several messageboards and attempted contacting individuals through e-mail,
all to no avail. So your help is appreciated, thanks in advance

>From http://developmentnow.com/g/46_0_0_0_0_0/dotnet-security.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com



Relevant Pages

  • Re: chkdsk problem
    ... policies to default it fixed 90% of my problems.Now the only problems ... I have are a bunch of access denied errors.A fresh install of windows ... If you do regular backups you can do a restore. ... I think you're confusing Windows security policies with your security ...
    (microsoft.public.windowsxp.security_admin)
  • RE: Local Security Policies
    ... I have posted on five different C# message boards ... Some of the policies I would like to check are the auditing ... > all of the settings on that computer and create a log of those settings that ... > the ability to change the settings on the remote computer if they are not set ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Local Security Policies
    ... I have posted on five different C# message boards ... Some of the policies I would like to check are the auditing ... > all of the settings on that computer and create a log of those settings that ... > the ability to change the settings on the remote computer if they are not set ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Getting local security settings effective
    ... is the command for immediate update of security policies. ... Also, in Windows 2000 AD environment site, domain and OU settings all ...
    (microsoft.public.win2000.security)
  • Local Security Policies
    ... Some of the policies I would like to check are the auditing ... all of the settings on that computer and create a log of those settings that ... the ability to change the settings on the remote computer if they are not set ... possible to remotely check these security policies and what I need to use to ...
    (microsoft.public.dotnet.languages.csharp)

Quantcast