Description
Delete the specified GPO and unlinks it from any organizational units.
Overview
This script connects to the target domain with impersonation or username and password. It then identifies the target Group Policy Objects (GPOs) using a name filter. Those policies are the unlinked from any Organizational Units (OUs) so that they are no longer applied. Finally, the GPO itself is deleted from Active Directory.
Parameters
| Name | Type | Description |
|---|---|---|
| Domain | string | The domain to connect to. |
| DomainController | string | The IP address or hostname of the target Domain Controller. |
| Username | string | The domain username to authenticate with. |
| Password | string | The password for the specified user. |
