Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to get a single RSOP value via POWERSHELL

Posted on 2016-11-17
2
Medium Priority
?
96 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 2000 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

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!

Question has a verified solution.

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

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

916 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