Solved

how to get a single RSOP value via POWERSHELL

Posted on 2016-11-17
2
59 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
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…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

803 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