Skip to content
No description, website, or topics provided.
Branch: development
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
GPOTools removing pointless variable assignment Jun 30, 2019
azFunctionResources Initial Submission Jun 29, 2019
build Fixing prerequisites Jun 29, 2019
library/GPOTools Initial Submission Jun 29, 2019
.gitattributes Initial Submission Jun 29, 2019
.gitignore Initial Submission Jun 29, 2019
LICENSE Initial Submission Jun 29, 2019
README.md Update README.md Jun 30, 2019
install.ps1 Initial Submission Jun 29, 2019

README.md

Description

The GPOTools module is designed to handle all things GPO.

As a special focus, it tries to manage migrations, backup & restore.

Compared to the built-in tools, its backup&restore capability also includes:

  • WMI Filter
  • GP Links & Link Order
  • Localized / Renamed builtin accounts & groups mapping
  • Customizable identity mapping
  • Permissions

Examples

Installing the module

Install-Module GPOTools

Backup

# Backup ALL GPOs
Backup-GptPolicy -Path .

# Backup just the ones you want
Get-GPO -All | Where-Object $condition | Backup-GptPolicy -Path .

# Backup all policies that fit your desired name pattern
Backup-GptPolicy -Path . -Name 'SEC-*'

Restore

# Restore everything
Restore-GptPolicy -Path .

# Restore just those policies you care about
Restore-GptPolicy -Path . -Name 'SEC-*', 'Client-*'

# Restore while mapping groups from the source domain to different groups in the destination domain
Restore-GptPolicy -Path . -IdentityMapping @{
	'S-D-FileServerAdmins' = 'SD1-FSAdmins'
}
You can’t perform that action at this time.