DiscoverPowerShell Cmdlet of the Day PodcastEpisode 4 – Get-GPResultantSetOfPolicy
Episode 4 – Get-GPResultantSetOfPolicy

Episode 4 – Get-GPResultantSetOfPolicy

Update: 2011-08-29
Share

Description

Download the MP3 Podcast


In this episode we look at how you can generate an RSOP with Windows PowerShell by using Get-GPResultantSetOfPolicy by using the GroupPolicy module that comes with the GPMC that is bundled in Windows Server 2008 R2 and the most recent version of RSAT.


# Populate dir with the current dir regardless of whether
# you are in a script or executing in the shell
if ($MyInvocation.MyCommand.Path) {
$dir = $MyInvocation.MyCommand.Path
}
else {
$dir = $pwd
}

$user = 'home\Administrator'
$report = Join-Path $dir 'rsop.html'
$comp = 'Server1'
Get-GPResultantSetOfPolicy -User $user -Path $report -ReportType HTML -Computer $comp


Brought to you by The Windows PowerShell Bible 2.0 and PowerShellGroup.Org

Comments 
loading
00:00
00:00
1.0x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

Episode 4 – Get-GPResultantSetOfPolicy

Episode 4 – Get-GPResultantSetOfPolicy

Tome Tanasovski