Aller au contenu

Remove-PSGPOLink

Deletes the links of GPOs to the domain or to an OU, as GPMC "Delete" on a link.

L'aide de la commande, telle que Get-Help Remove-PSGPOLink -Full la donne (en anglais).

Syntaxe

Remove-PSGPOLink [-Name] <string[]> [-Target] <string> [[-Directory] <GPOToolsDirectory>] [[-Server] <string>] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

The GPO itself is kept, with its other links; the links after it move up one link order. The change is refused when the links changed in the domain meanwhile.

Paramètres

-Name

Display names of the GPOs (* and ? make a pattern).

Type Obligatoire Position Valeur par défaut Accepte le pipeline
String[] Oui 1 Aucune Oui

-Target

The domain or the OU: its distinguished name, the name of the domain, or the name of an OU when only one OU has it.

Type Obligatoire Position Valeur par défaut Accepte le pipeline
String Oui 2 Aucune Non

-Directory

Directory of the domain (Get-PSGPODirectory); the domain is read when not given.

Type Obligatoire Position Valeur par défaut Accepte le pipeline
GPOToolsDirectory Non 3 Aucune Non

-Server

Domain controller to read the domain from, without -Directory.

Type Obligatoire Position Valeur par défaut Accepte le pipeline
String Non 4 Aucune Non

-WhatIf

Type Obligatoire Position Valeur par défaut Accepte le pipeline
SwitchParameter Non Nommé Aucune Non

-Confirm

Type Obligatoire Position Valeur par défaut Accepte le pipeline
SwitchParameter Non Nommé Aucune Non

Exemples

Exemple 1

Remove-PSGPOLink -Name 'U - Lyon - Printers' -Target Lyon

Voir aussi