Resultant Set of Policy
Resultant Set of Policy (RSoP) is the final result of every GPO that applied to a computer and a user: which GPOs applied, which were denied and why, and the winning GPO for each setting. Two kinds exist:
- Logging mode (results): what really happened on a machine, read from that machine. Tools:
gpresult,Get-GPResultantSetOfPolicy, GPMC Group Policy Results. - Planning mode (modeling): what would apply if a user or computer were in a given OU, site or group, calculated by a domain controller. Tool: GPMC Group Policy Modeling.
gpresult
| Command | Shows |
|---|---|
gpresult /r | Summary: applied and filtered GPOs, security groups, last refresh time, the DC used and slow-link status |
gpresult /r /scope:computer | Computer half only (run elevated) |
gpresult /v or /z | Verbose / super-verbose text with every setting and its precedence |
gpresult /h C:\gp.html /f | HTML report: winning GPO per setting, denied GPOs with reasons, CSE status and timing |
gpresult /x C:\gp.xml /f | The same as XML, for scripts |
gpresult /s PC01 /user CORP\alice /h C:\pc01.html | Remote report for a user who has signed in to PC01 |
- Run elevated to see computer settings; a non-elevated run only shows the user half.
- The report only covers a user who has signed in to that machine at least once (RSoP data is written at logon).
- "Denied (Security)" means no Apply permission; "Denied (WMI Filter)" means the filter was false; "Disabled (Link)" or "Empty" explain the rest.
# PowerShell equivalents
Get-GPResultantSetOfPolicy -ReportType Html -Path C:\gp.html # local, current user
Get-GPResultantSetOfPolicy -Computer PC01 -User CORP\alice -ReportType Html -Path C:\pc01.html
Group Policy Results wizard (GPMC)
- In GPMC, right-click Group Policy Results > Group Policy Results Wizard….
- Choose This computer or Another computer, then the user (only users who signed in there are listed).
- Read the Summary (applied, denied, component status), Settings (winning GPO per setting) and Policy Events (the remote GroupPolicy event log) tabs.
- Right-click the saved query to Rerun it after a change, or save the report as HTML.
Needs: Read Group Policy Results data on the OU that holds the computer (or local admin on it), and remote access to WMI and the event log on the target. Open the inbound firewall rules Windows Management Instrumentation (WMI-In), Remote Event Log Management and File and Printer Sharing on clients for admin subnets.
Group Policy Modeling wizard (GPMC)
- Right-click Group Policy Modeling > Group Policy Modeling Wizard… and pick a domain controller to run the simulation.
- Choose the user and computer (or a container: "what would any user in OU=Sales get").
- Optionally simulate a slow link, loopback (Merge or Replace) and a site.
- Simulate different group memberships ("what if this computer joins GG-Finance-PCs") and WMI filter results (assume true or false).
- Review the result like a Results report and save the query.
Modeling uses the Resultant Set of Policy Provider on the DC and needs the Perform Group Policy Modeling analyses permission on the target containers. It predicts; it does not prove. Confirm with a real gpresult on a pilot machine, because local policy, CSE failures, slow links and asynchronous processing only show up in real results.
Forcing a refresh remotely
# Every computer in an OU, now, with a random delay of up to 10 minutes
Get-ADComputer -SearchBase "OU=Workstations,DC=corp,DC=contoso,DC=com" -Filter * |
ForEach-Object { Invoke-GPUpdate -Computer $_.Name -RandomDelayInMinutes 10 -Force }
Invoke-GPUpdate and GPMC's Group Policy Update… create a scheduled task on each target that runs gpupdate for the computer and for each signed-in user. They need the Remote Scheduled Tasks Management (RPC) and WMI firewall rules on the targets.
References: gpresult, Get-GPResultantSetOfPolicy, Invoke-GPUpdate.