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 get a single RSOP value via POWERSHELL

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

828 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