Solved

how to get a single RSOP value via POWERSHELL

Posted on 2016-11-17
2
72 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
[X]
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
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

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

This article explains how to install and use the NTBackup utility that comes with Windows Server.
The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

739 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