共用方式為


Get-RdsHostPool

獲取主機池的屬性。

語法

Default (預設值)

Get-RdsHostPool
    [-TenantName] <String>
    [[-Name] <String>]
    [<CommonParameters>]

Description

Get-RdsHostPool cmdlet 獲取指定主機池的屬性。 如果未指定主機池,則此 cmdlet 將返回為當前用戶授權的指定租戶中所有主機池的屬性。

範例

示例 1:獲取指定租戶中的所有主機池

PS C:\> Get-RdsHostPool -TenantName "contoso"

TenantName            : contoso
TenantGroupName       : Default Tenant Group
HostPoolName          : contosoHostPool
FriendlyName          :
Description           :
Persistent            : False
CustomRdpProperty     :
MaxSessionLimit       : 999999
LoadBalancerType      : BreadthFirst
ValdationEnv          : True
Ring                  :
AssignmentType        :

TenantName            : contoso
TenantGroupName       : Default Tenant Group
HostPoolName          : contosoPersonal
FriendlyName          :
Description           :
Persistent            : True
CustomRdpProperty     :
MaxSessionLimit       : 999999
LoadBalancerType      : Persistent
ValdationEnv          : True
Ring                  :
AssignmentType        : Automatic

此命令獲取指定租戶中為當前用戶授權的所有主機池的屬性。

範例 2:獲取特定主機池

PS C:\> Get-RdsTenant -TenantName "contoso" -Name "contosoHostPool"

TenantName            : Contoso
TenantGroupName       : Default Tenant Group
HostPoolName          : contosoHostPool
FriendlyName          :
Description           :
Persistent            : False
CustomRdpProperty     :
MaxSessionLimit       : 999999
LoadBalancerType      : BreadthFirst
ValdationEnv          : True
Ring                  :
AssignmentType        :

此命令獲取租戶中指定主機池的屬性。 僅當租戶中存在主機池並且當前用戶已獲得適當授權時,才會顯示主機池及其屬性。

參數

-Name

主機池的名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False
別名:HostPool名稱

參數集

(All)
Position:1
必要:False
來自管線的值:True
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-TenantName

租用戶的名稱。

參數屬性

類型: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

輸入

Microsoft.RDInfra.RDManagementData.RdMgmtHostPool