Skip to main content

Unregister-DMGPLink

SYNOPSIS​

Removes a group policy link from the configured desired state.

SYNTAX​

Path (Default)​

Unregister-DMGPLink -PolicyName <string> -OrganizationalUnit <string> [<CommonParameters>]

Filter​

Unregister-DMGPLink -PolicyName <string> -OUFilter <string> [<CommonParameters>]

DESCRIPTION​

Removes a group policy link from the configured desired state.

EXAMPLES​

EXAMPLE 1​

Get-DMGPLink | Unregister-DMGPLink

Clears all configured Group policy links.

PARAMETERS​

-OrganizationalUnit​

The name of the organizational unit the policy should be unregistered from.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- OU
ParameterSets:
- Name: Path
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-OUFilter​

The filter of the filterbased policy link to remove

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Filter
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-PolicyName​

The name of the policy to unregister.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters​

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.