共用方式為


Remove-RdsTenant

刪除租戶。

語法

Default (預設值)

Remove-RdsTenant
    [-Name] <String>
    [<CommonParameters>]

Description

Remove-RdsTenant cmdlet 用於刪除當前上下文中的租戶。 在運行此命令之前,您必須先刪除與租戶關聯的所有主機池。

範例

範例 1

PS C:\> Remove-RdsTenant -Name "contoso"

此命令將刪除當前上下文中的租戶。

參數

-Name

租用戶的名稱。

參數屬性

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

輸入

System.String

輸出

System.Object