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.Manageme ntObject 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.Manageme nt 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 2 4554
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.Manageme ntObject 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.Manageme nt 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
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.Manageme ntObject 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.Manageme nt 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 it to his hosting
company. I don't have a problem with this in principle but I do have
the following concerns:
1) We connect to the internet via AOL and my son's account is a "young
person access" account. Will this be compromised by apache?
|
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 standalone
machines are involved, Active Directory and group policy may or may
not be a factor, so I must assume entries are not inherited from the
domain group policy. So, my question is, how can I gain access to the
computer configuration settings...
|
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 and some who couldn't but that it wasn't important right now.
And I said, 'sure, we can do that later'.
So now I've developed an app without any thought to security and am trying
to apply it afterwards. Doh!, doh! and triple doh!
|
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 configured at installation.
So now for the problem.
How do I get around this ?
I really would liek to be able to reduce the amount of steps that the user
has to take to deploy my aplication, and I really don't want to send the user
|
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 (I come from a C/C++ background). It appears that signing
assembles and using role based security policies etc have limited
benefits if an end user can easily reverse engineer the binaries and
"side step" any implemented security policies.
I may...
| |
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 / transfer / edit over HTTP. The data will be
|
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 looking at some
sample code, I was scared off in both cases. If someone could just
point me at a good resource, or provide a snippet of code I would be
EXTREMELY greatful.
Nigel
|
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
disable/locked out. I can't seem to figure out how.
I saw two properties in MSDN BadPasswordAttempts and MaxPasswordAge
but I can't seem to set them on the new user.
my code looks like this
DirectoryEntry newUser = null; ;
|
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 for passwords are administered by using
"Local Security Settings" console and inside it with "Account
Policies\Password Policy".
What i need to do, is to read the value of "Maximum password age" by using
c# code. I need to read the value of...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |