Aller au contenu

Import-PSGPODirectory

Reads a domain, its OUs, GPOs and GPO links from a JSON description.

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

Syntaxe

Import-PSGPODirectory [-Path] <string> [<CommonParameters>]

Description

Proof of concept of the Group Policy Management view of Show-GPOManagerAvalonia: the directory is described in a JSON file instead of being read from Active Directory, and the changes made in the window (new GPOs, new links) stay in memory.

JSON format: domain DNS name of the domain (required) gpos [ { name (required), id, userVersion, computerVersion, userEnabled, computerEnabled } ] links links of the domain, by link order (1 first): either the GPO name or { gpo, enabled, enforced } organizationalUnits [ { name (required), blockInheritance, links, organizationalUnits } ] sites sites of the forest, read only: [ { name (required), links } ]

A sample is shipped with the module: Samples/Directory.sample.json.

Paramètres

-Path

Path of the JSON file.

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

Exemples

Exemple 1

$Directory = Import-PSGPODirectory -Path (Join-Path (Split-Path (Get-Module HGPM).Path) 'Samples' 'Directory.sample.json')
Show-GPOManagerAvalonia -Directory $Directory

Sorties

  • GPOToolsDirectory

Voir aussi