Get-ControlledGpo

Letzte Aktualisierung: August 2015

Betrifft: Advanced Group Policy Management 4.0 SP3

Get-ControlledGpo

Gets controlled GPOs for a domain.

Syntax

Parameter Set: Default
Get-ControlledGpo [-Domain <String> ] [ <CommonParameters>]




Detaillierte Beschreibung

The Get-ControlledGpo cmdlet gets the controlled Group Policy Objects (GPOs) from an Advanced Group Policy Management (AGPM) archive for a domain. You can use this cmdlet to view state information for controlled GPOs. Use the Get-Gpo cmdlet to view uncontrolled GPOs. For more information, type Get-Help Get-Gpo.

Parameter

-Domain<String>

Specifies the fully qualified domain name (FQDN) of a domain. This cmdlet gets 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.


Aliasse

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die über die Pipeline an das Cmdlet übergeben werden können.

  • None

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

  • Microsoft.Agpm.ControlledGpo

    This cmdlet returns controlled GPO objects.


Beispiele

Example 1: Get all GPOs and then filter results

This command gets all controlled GPOs from the domain TQSA.Contoso.com, and then passes them to the Where-Object cmdlet. That cmdlet returns the GPO from those results named TSQA Group policies.


PS C:\> Get-ControlledGpo -Domain "TQSA.Contoso.com" | Where {$_.name -eq "TSQA Group policies"}

Verwandte Themen

Anzeigen: