Skip to content

Export-Brokergpopolicyset

Export a GPO policy set as a blob.

Syntax

Export-BrokerGpoPolicySet [-PolicySetGuid <Guid>] [-AdminAddress <String>] [-BearerToken <String>] [-TraceParent <String>] [-TraceState <String>] [-VirtualSiteId <String>] [<CommonParameters>]

Detailed Description

Export-BrokerGpoPolicySet returns an array of bytes containing the serialized GPO objects of the specified GPO policy set.

Parameters

Name Description Required? Pipeline Input Default Value
PolicySetGuid The GUID of the policy set to be exported. If this parameter is not specified, the site policy set is exported. false true (ByValue)
AdminAddress Specifies the address of a XenDesktop controller that the PowerShell snapin will connect to. This can be provided as a host name or an IP address. false false Localhost. Once a value is provided by any cmdlet, this value will become the default.
BearerToken Specifies the bearer token assigned to the calling user false false
TraceParent Specifies the trace parent assigned for internal diagnostic tracing use false false
TraceState Specifies the trace state assigned for internal diagnostic tracing use false false
VirtualSiteId Specifies the virtual site the PowerShell snap-in will connect to. false false

Input Type

None

Return Values

System.Byte[]

The GPO objects serialized as a blob, or an opaque array of bytes.

Examples

Example 1

C:\PS> $policy = Export-BrokerGpoPolicySet

Description

This command exports the default site policy set.

Was this article helpful?