Link to home
Start Free TrialLog in
Avatar of Islandr
Islandr

asked on

How to query information in the computer local policy

I am currently looking for a script which allows me to query the two values or more in the local security setting of Windows 2003 and XP on my network:

The first value that I am looking for is Store passwords using reversible encryption which you can configure this security setting by opening the appropriate policy and expanding the console tree as such: Computer Configuration\Windows Settings\Security Settings\Account Policies\Password Policy\

And the second value that I would like to query is "Anonymous SID/Name Translation" which can be located at "Windows Settings\Security Settings\Local Policies\Security Options\ and the Value is "Network access: Allow anonymous SID/name translation"

The script that I am looking for should query the values on the specific policy and return the answer, I would like to run it against a Server/Workstation List.

Avatar of ComputerTechie
ComputerTechie
Flag of United States of America image

Avatar of Netman66
Why would you want this?

If your GPOs have this value set then all the domain members (clients and servers) will have the identical setting as long as Group Policy is applying.  If you need it for SOX, then make the settings the way they must be on the Default Domain Policy or a new GPO that affects your clients and apply them.  This will guarantee they are the same.

Other than that, there isn't really a way to do this unless you dump the policy using SECEDIT and parse it completely as a text file searching for the information you are looking for - this is quite intensive.



Avatar of Islandr
Islandr

ASKER

ComputerTechie,

How do I run a query, because this sample script modify the values, I would like to query.

Thanks,
That link is for modifying Process Security levels - absolutely nothing to do with what you're asking.

Avatar of Islandr

ASKER

Netman66,

We know that we have a group policy in place to mitigate and prevent changes to the host, however there is a scan that has come up with a list of systems that might not be complaint, and is either to check them individually or run a script.

Any suggestions?
Well, the password policy comes from the Default Domain Policy and if a computer is joined to the domain it's getting that one - there isn't any way around that and there's no way to override, block or change that.

The second setting (if set at the Default Domain Policy) can be overridden on lower-level GPOs, but the way to mitigate that from happening is to Enforce the policy making that setting (hopefully, it's the Default Domain Policy too).  By Enforcing it, any settings made explicitly in this policy cannot be overridden or blocked anywhere else.


As for a script - there's nothing I know of unless there's something buried deep in WMI I haven't seen before.

ASKER CERTIFIED SOLUTION
Avatar of Islandr
Islandr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Islandr

ASKER

There was no solution