• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 638
  • Last Modified:

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.

0
Islandr
Asked:
Islandr
  • 4
  • 3
  • 2
1 Solution
 
ComputerTechieCommented:
0
 
ComputerTechieCommented:
0
 
Netman66Commented:
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.



0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
IslandrAuthor Commented:
ComputerTechie,

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

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

0
 
IslandrAuthor Commented:
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?
0
 
Netman66Commented:
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.

0
 
IslandrAuthor Commented:
This is unresolved.  There is no solution for this.
0
 
IslandrAuthor Commented:
There was no solution
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now