Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to query information in the computer local policy

Posted on 2011-03-16
9
633 Views
Last Modified: 2012-05-11
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
Comment
Question by:Islandr
  • 4
  • 3
  • 2
9 Comments
 
LVL 23

Expert Comment

by:ComputerTechie
ID: 35153382
0
 
LVL 23

Expert Comment

by:ComputerTechie
ID: 35153383
0
 
LVL 51

Expert Comment

by:Netman66
ID: 35153384
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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:Islandr
ID: 35156018
ComputerTechie,

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

Thanks,
0
 
LVL 51

Expert Comment

by:Netman66
ID: 35156142
That link is for modifying Process Security levels - absolutely nothing to do with what you're asking.

0
 

Author Comment

by:Islandr
ID: 35156372
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
 
LVL 51

Expert Comment

by:Netman66
ID: 35156428
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
 

Accepted Solution

by:
Islandr earned 0 total points
ID: 35403566
This is unresolved.  There is no solution for this.
0
 

Author Closing Comment

by:Islandr
ID: 35431203
There was no solution
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Using VBScript. How to obtain the recomended paging file size? 8 69
ASP/VB email question 4 46
powershell script 9 63
a slight change to the code written by Brad Yundt 2 33
A short article about problems I had with the new location API and permissions in Marshmallow
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question