Skip to content

Instantly share code, notes, and snippets.

@williamjacksn
Created September 12, 2012 16:44
Show Gist options
  • Save williamjacksn/3708009 to your computer and use it in GitHub Desktop.
Save williamjacksn/3708009 to your computer and use it in GitHub Desktop.
Backup all GPOs that match a pattern
Import-Module GroupPolicy
Get-GPO -All | Where-Object {$_.DisplayName -like "ops*"} | Backup-GPO -Path "\\server\share" -Comment "Backup Comment"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment