Get-RdsTenant
取得已授權給目前使用者的租使用者。
語法
Default (預設值)
Get-RdsTenant
[-Name <String>]
[<CommonParameters>]
Description
Get-RdsTenant cmdlet 獲取為當前用戶授權的租戶。 如果未指定租戶,則此 cmdlet 將返回為當前用戶授權的所有租戶。
範例
示例 1:獲取當前上下文中的所有租戶
PS C:\> Get-RdsTenant
TenantGroupName : Default Tenant Group
AadTenantId : aaaa-aaaa-aaaa-aaaa
TenantName : contoso
Description : Windows Virtual Desktop tenant for Contoso.
FriendlyName : Contoso
SsoAdfsAuthority :
SsoClientId :
SsoClientSecret :
AzureSubscriptionId : bbbb-bbbb-bbbb-bbbb
TenantGroupName : Default Tenant Group
AadTenantId : aaaa-aaaa-aaaa-aaaa
TenantName : contosoA
Description : Windows Virtual Desktop tenant for ContosoA.
FriendlyName : ContosoA
SsoAdfsAuthority :
SsoClientId :
SsoClientSecret :
AzureSubscriptionId :
此命令獲取當前上下文中為當前用戶授權的所有租戶。
示例 2:獲取特定租戶
PS C:\> Get-RdsTenant -Name "contoso"
TenantGroupName : Default Tenant Group
AadTenantId : aaaa-aaaa-aaaa-aaaa
TenantName : contoso
Description : Windows Virtual Desktop tenant for Contoso.
FriendlyName : Contoso
SsoAdfsAuthority :
SsoClientId :
SsoClientSecret :
AzureSubscriptionId :
此命令獲取當前上下文中的指定租戶。 僅當租戶存在於當前上下文中並且當前用戶已獲得適當授權時,才會顯示租戶。
參數
-Name
租用戶的名稱。
參數屬性
| 類型: | String |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
| 別名: | 租戶名稱 |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | True |
| 來自管線按屬性名稱的值: | True |
| 來自剩餘引數的值: | False |
CommonParameters
此 Cmdlet 支援一般參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters。