Edit

Share via


Get-RDPersonalSessionDesktopAssignment

Gets personal session desktop assignments.

Syntax

GetByCollection (Default)

Get-RDPersonalSessionDesktopAssignment
    [-CollectionName] <String>
    [-ConnectionBroker <String>]
    [<CommonParameters>]

GetByDesktop

Get-RDPersonalSessionDesktopAssignment
    [-CollectionName] <String>
    -Name <String>
    [-ConnectionBroker <String>]
    [<CommonParameters>]

GetByUser

Get-RDPersonalSessionDesktopAssignment
    [-CollectionName] <String>
    -User <String>
    [-ConnectionBroker <String>]
    [<CommonParameters>]

Description

The Get-RDPersonalSessionDesktopAssignment cmdlet gets Remote Desktop personal session desktop assignments.

Examples

Example 1: Get assignments for a collection

PS C:\>Get-RDPersonalSessionDesktopAssignment -CollectionName "RDSessionHostPersonalDesktopCollection"

This command gets the personal session desktop assignments from the collection named RDSessionHostPersonalDesktopCollection.

Example 2: Get assignments for a user

PS C:\>Get-RDPersonalSessionDesktopAssignment -CollectionName "Wrdsh_pd" -User "contoso\user"

This command gets the personal session desktop assignments for the specified user.

Example 3: Get assignments for a server

PS C:\>Get-RDPersonalSessionDesktopAssignment -CollectionName "Rdsh_pd" -Name "RdshServer.contoso.com"

This command gets the personal session desktop assignments from the server named RdshServer.contoso.com.

Parameters

-CollectionName

Specifies the name of a personal virtual desktop collection.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-ConnectionBroker

Specifies the Remote Desktop Connection Broker (RD Connection Broker) server for a Remote Desktop deployment. If you do not specify a value, the cmdlet uses the fully qualified domain name (FQDN) of the local computer.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies the name of the personal session desktop assignment to get.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

GetByDesktop
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-User

Specifies a user account in DOMAIN\user format.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

GetByUser
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

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

Inputs

String

Outputs

Microsoft.RemoteDesktopServices.Management.RDPersonalSessionDesktopAssignment