Citrix Virtual Apps and Desktops SDK

New-BrokerExtendedTraceCapture

Introduced in: Citrix Virtual Apps and Desktop 7 2511

Start a new extended trace capture session.

Syntax

New-BrokerExtendedTraceCapture
   [-DurationMins] <Int32>
   -UserName <String>
   [-LoggingId <Guid>]
   [<CitrixCommonParameters>]
   [<CommonParameters>]
<!--NeedCopy-->

Description

The New-BrokerExtendedTraceCapture cmdlet starts a period

of time during which more verbose logging is collected. When the time expires

the BrokerExtendedTraceCapture object is deleted automatically.

Examples

EXAMPLE 1

Starts a new extended trace capture session for the next 10 minutes associated with the user “user1”.

New-BrokerExtendedTraceCapture -DurationMins 10 -UserName "user1"
<!--NeedCopy-->

Parameters

-DurationMins

Length of time in minutes to capture the logs.

Type: Int32
Position: 2
Default value: None
Required: True
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-UserName

User name associated with the capture session.

Type: String
Position: Named
Default value: None
Required: True
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: True

-LoggingId

Specifies the identifier of the high level operation that this cmdlet call forms a part of. Desktop Studio and Desktop Director typically create High Level Operations. PowerShell scripts can also wrap a series of cmdlet calls in a High Level Operation by way of the Start-LogHighLevelOperation and Stop-LogHighLevelOperation cmdlets.

Type: Guid
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False

CitrixCommonParameters

This cmdlet supports the common Citrix parameters: -AdminAddress, -AdminClientIP, -BearerToken, -SkipCertificateValidation, -TraceParent, -TraceState and -VirtualSiteId. For more information, see about_CitrixCommonParameters.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

You cannot pipe input into this cmdlet.

Outputs

Citrix.Broker.Admin.SDK.ExtendedTraceCapture

Returns the newly created capture session

New-BrokerExtendedTraceCapture