Remove-SCSPFTenantUserRole
移除一或多個租使用者使用者角色。
Syntax
Remove-SCSPFTenantUserRole
-UserRole <Role[]>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Remove-SCSPFTenantUserRole Cmdlet 會從 Service Provider Foundation 資料庫移除一或多個租使用者使用者角色。
範例
範例 1:移除租使用者使用者角色
PS C:\>$TenantUserRole = Get-SCSPFTenantUserRole -ID 9adb708d-f47e-4dda-9e56-91e1eb2808df
PS C:\> Remove-SCSPFTenantUserRole -UserRole $TenantUserRole
第一個命令會依其識別碼取得租使用者使用者角色,並將物件儲存在$TenantUserRole變數中。
第二個命令會移除租使用者使用者角色。
參數
-Confirm
在執行 Cmdlet 前提示您確認。
Type: | System.Management.Automation.SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UserRole
指定一或多個租使用者使用者角色的名稱。 若要取得租使用者使用者角色,請使用 Get-SCSPFTenantUserRole Cmdlet。
Type: | Microsoft.SystemCenter.Foundation.SPFData.Types.Role[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
顯示執行 Cmdlet 後會發生的情況。 Cmdlet 並不會執行。
Type: | System.Management.Automation.SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
輸入
Microsoft.SystemCenter.Foundation.SPFData.Types.Role[]
輸出
System.Object