473,414 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Local Security Policies

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

Nov 17 '05 #1
2 4524
I am proud of this topic. I have posted on five different C# message boards
and have yet to get help. I guess it is as hard as I think it is. Thanks
for taking a look tho.

"Justin" wrote:
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

Nov 17 '05 #2
I am proud of this topic. I have posted on five different C# message boards
and have yet to get help. I guess it is as hard as I think it is. Thanks for
taking a look tho.

"Justin" wrote:
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

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike | last post by:
Hello I'm hoping someone can help me with the following. My son is learning PHP and wants to install an apache test server on our XP pro home computer so he can test his code before uploading...
0
by: Jack | last post by:
I am working on a dotnet project to write an application that can audit and write registry and local security policy entries on multiple standalone (not networked) and domain computers. Since...
116
by: Mike MacSween | last post by:
S**t for brains strikes again! Why did I do that? When I met the clients and at some point they vaguely asked whether eventually would it be possible to have some people who could read the data...
2
by: Bas Hamer | last post by:
ok, so I kow that the local system accoutn can't get to a network share, and if you want to do that and not lose any of your other priveliges you need to run under a user name and password that is...
5
by: Susan Baker | last post by:
We are currently developing a commercial application which we are writing mostly in C# (at least the front end). The apparent ease at which code is reverse engineered gives me sleepless nights...
5
by: Brian | last post by:
Hi All I have 2 question, the first one I hope I don't start an argurment ! How secure is MySQL? I have been asked by a client to create a windows based application that will control /...
0
by: Nigel | last post by:
Using VB.NET (2005)I am trying to find the EASIEST way to read(JUST read) the local audit policy settings on MS 2000/2003 servers. I have looked at using WMI and LSA but, quite frankly, after...
8
by: Michael Howes | last post by:
I have some code that manages local user logins. When I create a new user I want to set the password to expire every x days and the number of failed login attempts before the account is...
0
by: =?Utf-8?B?UmljYXJkbyBRdWludGFuaWxsYQ==?= | last post by:
I have an Adam (active directory application mode) instance on windows server 2003, and the server does not belong to a domain, i mean it is a standalone server. So in this context the policies...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.