Set-RdsContext
設置後續 Windows 虛擬桌面 cmdlet 的租戶組上下文。
語法
Default (預設值)
Set-RdsContext
[-TenantGroupName] <String>
[<CommonParameters>]
Description
Set-RdsContext cmdlet 為後續 RDS PowerShell cmdlet 設置租戶組上下文。 此上下文僅在PowerShell工作階段期間有效,或者在運行另一個 Set-RdsContext 之前有效。 如果在運行 Add-RdsAccount 後未指定,則將使用“預設租戶組”。
範例
範例 1:設置 Windows 虛擬桌面上下文
PS C:\> Set-RdsContext -TenantGroupName "contosoTenantGroup"
此命令將上下文設置為使用指定的租戶組。
參數
-TenantGroupName
租戶組的名稱。
參數屬性
| 類型: | String |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
(All)
| Position: | 0 |
| 必要: | True |
| 來自管線的值: | True |
| 來自管線按屬性名稱的值: | True |
| 來自剩餘引數的值: | False |
CommonParameters
此 Cmdlet 支援一般參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters。