Remove-GPO - Overview and Examples

March 05, 2018 0 Comments PowerShell, Group-Policy
SYNOPSIS

Deletes a GPO.

DESCRIPTION

The Remove-GPO cmdlet deletes GPO's from Active Directory.

SYNTAX
Remove-GPO [-Domain <String>] [-KeepLinks] [-Server <String>] -Guid <Guid> [-Confirm] [-WhatIf] [<CommonParameters>]

Remove-GPO [-Name] <String> [-Domain <String>] [-KeepLinks] [-Server <String>] [-Confirm] [-WhatIf] [<CommonParameters>]

EXAMPLES
Remove-GPO -Name TestGPO
  • deletes the GPO named TestGPO