Solved

how to get a single RSOP value via POWERSHELL

Posted on 2016-11-17
2
27 Views
Last Modified: 2016-11-21
Greetings, I'm trying to scan a remote Windows 2008/2012 server cluster.
I want to get the current RSOP value of a single or a few policies on those servers.  There's over 400 servers.
I don't care if I have to scan each policy one at a time, but I would like to just get the value for that policy.

Every RSOP Powershell I see, returns a massive XML/html file response:

get-gpresultantsetofpolicy -reporttype xml -path c:\reports\LocalUserAndComputerReport.xml

Open in new window


How do I just get the value I'm looking for, so I can provide a report of all servers and the value of the one given Policy?

thanks
0
Comment
Question by:Evan Cutler
2 Comments
 
LVL 2

Accepted Solution

by:
Chamara Weliwattage earned 500 total points
ID: 41892377
I don't think there is easy way of doing it, such as take the exact setting using powershell command

You need to know the exact key word in XML file. Then using PowerShell, search the xml document for that key word.

report should be based on if the key word is there in the XML file or not.
0
 
LVL 9

Author Closing Comment

by:Evan Cutler
ID: 41896407
bout as good as I can get there.
Thanks Chamara....
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Utilizing an array to gracefully append to a list of EmailAddresses
Synchronize a new Active Directory domain with an existing Office 365 tenant
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now