Get-PSGPOConfiguration¶
Shows the configuration of HGPM for the domain, and where it comes from.
L'aide de la commande, telle que Get-Help Get-PSGPOConfiguration -Full la donne (en anglais).
Syntaxe¶
Description¶
The configuration is the Resources/Configuration.psd1 of the module (every setting with its default, commented), with over it the configuration of the domain: Configuration.psd1 in SYSVOL\
The configuration in use is the one of the last domain read (Get-PSGPODirectory, the window, or a command given -Directory); -Directory or -Server reads another one. The Settings window of the console changes it.
It sets what the window proposes for a new GPO (name, status, security filtering groups), and the labels of the approved versions and of the templates.
Paramètres¶
-Directory¶
Directory of the domain (Get-PSGPODirectory).
| Type | Obligatoire | Position | Valeur par défaut | Accepte le pipeline |
|---|---|---|---|---|
GPOToolsDirectory |
Non | 1 | Aucune | Non |
-Server¶
Domain controller to read the domain from, without -Directory.
| Type | Obligatoire | Position | Valeur par défaut | Accepte le pipeline |
|---|---|---|---|---|
String |
Non | 2 | Aucune | Non |
Exemples¶
Exemple 1¶
Exemple 2¶
# An administrator of the domain: the groups of the new GPOs in OU=GPO,OU=Groups
$Path = (Get-PSGPOConfiguration).DomainPath
Set-Content -Path $Path -Value "@{ NewGpo = @{ SecurityFilteringGroups = @{ Create = `$true; Container = 'OU=GPO,OU=Groups' } } }"
Sorties¶
System.Management.Automation.PSObject