Get-RdsContext
Gets the metadata used to authenticate Windows Virtual Desktop requests.
Syntax
Default (Default)
Get-RdsContext
[-DeploymentUrl <String>]
[<CommonParameters>]
Description
The Get-RdsContext cmdlet gets the current metadata used to authenticate Windows Virtual Desktop requests. This cmdlet gets the deployment URL, tenant group, and user name.
Examples
Example 1: Get the current context
PS C:\> Get-RdsContext
DeploymentUrl TenantGroupName UserName
------------- --------------- --------
https://rdbroker.wvd.microsoft.com Default Tenant Group admin@contoso.com
Parameters
-DeploymentUrl
The Universal Resource Locator (URL) string pointing to the Windows Virtual Dekstop management site.
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 |
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.