Posts RSS Comments RSS 253 Posts and 411 Comments till now

List of 2008 R2 Group Policy cmdlets

Rick Sheikh asked me about the Windows 2008 R2 GP cmdlets on blog post Build Lab w/ Quest AD CMDLets.

Here is a list (you have to add it via features.) and how to find them

import-module GroupPolicy
Get-Command -Module GroupPolicy | %{$_.Name}

Backup-GPO
Copy-GPO
Get-GPInheritance
Get-GPO
Get-GPOReport
Get-GPPermissions
Get-GPPrefRegistryValue
Get-GPRegistryValue
Get-GPResultantSetOfPolicy
Get-GPStarterGPO
Import-GPO
New-GPLink
New-GPO
New-GPStarterGPO
Remove-GPLink
Remove-GPO
Remove-GPPrefRegistryValue
Remove-GPRegistryValue
Rename-GPO
Restore-GPO
Set-GPInheritance
Set-GPLink
Set-GPPermissions
Set-GPPrefRegistryValue
Set-GPRegistryValue

One Response to “List of 2008 R2 Group Policy cmdlets”

  1. on 23 Sep 2009 at 2:17 pmRick Sheikh

    Thanks Brandon. I would like to point out that in order to get GP module you have installed Group Policy Management features.

    If you are in the AD Module for PowerShell, you will have to run the “import-module grouppolicy”

    If you are in the Windows PowerShell Modules window then its already there and you can just run “get-command -module grouppolicy” to check out those commands.

Trackback this post | Feed on Comments to this post

Leave a Reply

You must be logged in to post a comment.