Add-ControlledGpo

Aggiornamento: agosto 2015

Si applica a: Advanced Group Policy Management 4.0 SP3

Add-ControlledGpo

Adds GPOs to an AGPM archive.

Sintassi

Parameter Set: Default
Add-ControlledGpo [[-Gpos] <Gpo[]> ] [-Comment <String> ] [-PassThru] [ <CommonParameters>]




Descrizione dettagliata

The Add-ControlledGpo cmdlet adds uncontrolled Group Policy Objects (GPOs) to an Advanced Group Policy Management (AGPM) archive. That GPO becomes a controlled GPO.

Parametri

-Comment<String>

Specifies a comment for the change that this cmdlet makes.


Alias

none

Obbligatorio?

false

Posizione?

named

Valore predefinito

none

Accetta input da pipeline?

false

Accetta caratteri jolly?

false

-Gpos<Gpo[]>

Specifies an array of GPOs to add to the AGPM archive. To obtain GPOs, use the Get-Gpo cmdlet. For more information, type Get-Help Get-Gpo.


Alias

none

Obbligatorio?

false

Posizione?

1

Valore predefinito

none

Accetta input da pipeline?

true(ByValue,ByPropertyName)

Accetta caratteri jolly?

false

-PassThru

Indicates that this cmdlet returns the controlled GPOs on which the cmdlet operates. If you do not specify this parameter, this cmdlet returns no results.


Alias

none

Obbligatorio?

false

Posizione?

named

Valore predefinito

none

Accetta input da pipeline?

false

Accetta caratteri jolly?

false

<CommonParameters>

Questo cmdlet supporta i parametri comuni: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer e -OutVariable. Per altre informazioni, vedere   about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Input

Il tipo di input è il tipo degli oggetti che è possibile reindirizzare al cmdlet.

  • Microsoft.GroupPolicy.Gpo

    This cmdlet accepts GPO objects.


Output

Il tipo di output corrisponde al tipo di oggetti generati dal cmdlet.

  • Microsoft.Agpm.ControlledGpo

    This cmdlet returns controlled GPO objects, if you specify the PassThru parameter.


Esempi

Example 1: Add a GPO by using the pipeline operator

This command uses the Get-Gpo cmdlet to get the uncontrolled GPO named TSQA Group policies. For more information, type Get-Help Get-Gpo. The command passes that GPO to the current cmdlet. This cmdlet adds that GPO to the AGPM archive.


PS C:\> Get-Gpo -Name "TSQA Group policies" | Add-ControlledGpo -PassThru

Example 2: Add a GPO by using a variable

The first command uses Get-Gpo to get the uncontrolled GPO named TSQA Group policies, and then stores that object in the $GpoObject variable.

The second command adds the object stored in $GpoObject to the AGPM archive.


PS C:\> $GpoObject = Get-Gpo -Name "TSQA Group policies"
PS C:\> Add-ControlledGpo -Gpos $GpoObject -PassThru

Argomenti correlati

Aggiunte alla community

AGGIUNGI
Mostra: