Get-RdsContext
獲取用於對 Windows 虛擬桌面請求進行身份驗證的元數據。
語法
Default (預設值)
Get-RdsContext
[-DeploymentUrl <String>]
[<CommonParameters>]
Description
Get-RdsContext cmdlet 獲取用於對 Windows 虛擬桌面請求進行身份驗證的當前元數據。 此 cmdlet 獲取部署 URL、租戶組和使用者名。
範例
範例 1:取得目前的內容
PS C:\> Get-RdsContext
DeploymentUrl TenantGroupName UserName
------------- --------------- --------
https://rdbroker.wvd.microsoft.com Default Tenant Group admin@contoso.com
參數
-DeploymentUrl
指向 Windows 虛擬 Dekstop 管理網站的通用資源定位器 (URL) 字串。
參數屬性
| 類型: | String |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
CommonParameters
此 Cmdlet 支援一般參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters。