Publish-ControlledGpo

Aggiornamento: agosto 2015

Si applica a: Advanced Group Policy Management 4.0 SP3

Publish-ControlledGpo

Publishes controlled GPOs.

Sintassi

Parameter Set: Default
Publish-ControlledGpo [[-ControlledGpos] <ControlledGpo[]> ] [-Comment <String> ] [-Domain <String> ] [-PassThru] [ <CommonParameters>]




Descrizione dettagliata

The Publish-ControlledGpo cmdlet publishes controlled Group Policy Objects (GPOs) that are checked in to the Advanced Group Policy Management (AGPM) archive into production. This is the equivalent of deploying a controlled GPO to production.

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

-ControlledGpos<ControlledGpo[]>

Specifies an array of GPOs to publish. To obtain controlled GPOs, use the Get-ControlledGpo cmdlet.


Alias

none

Obbligatorio?

false

Posizione?

1

Valore predefinito

none

Accetta input da pipeline?

true(ByValue,ByPropertyName)

Accetta caratteri jolly?

false

-Domain<String>

Specifies the fully qualified domain name (FQDN) of a domain. This cmdlet operates on GPOs in the domain that this parameter specifies. If the AGPM service runs as part of a different domain, and if this cmdlet specifies that domain, a trust relationship must exist between that domain and the domain of the current user or computer.

If you do not specify a domain, this cmdlet uses the domain of the current user.

If you use this cmdlet as part of a computer startup or shutdown script, and if the command does not specify this parameter, the cmdlet uses the domain of the computer.


Alias

none

Obbligatorio?

false

Posizione?

named

Valore predefinito

none

Accetta input da pipeline?

false

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.Agpm.ControlledGpo

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: Publish checked in GPOs

This command uses the Get-ControlledGpo cmdlet to get all controlled GPOs in the specified domain. The command passes those GPOs to the Where-Object cmdlet. That cmdlet passes any GPOs that have a state of CHECKED_IN to the current cmdlet. This cmdlet publishes all of those GPOs. If any of the GPOs changed, the changes become live at this time.


PS C:\> Get-ControlledGpo -Domain "TSQA.Contoso.com" | Where {$_.VaultState -eq "CHECKED_IN" } | Publish-ControlledGpo -PassThru

Argomenti correlati

Aggiunte alla community

AGGIUNGI
Mostra: