Remove-AzureADUserExtension
删除用户分机。
语法
SetSingle
Remove-AzureADUserExtension
-ObjectId <String>
-ExtensionName <String>
[<CommonParameters>]
SetMultiple
Remove-AzureADUserExtension
-ObjectId <String>
-ExtensionNames <System.Collections.Generic.List`1[System.String]>
[<CommonParameters>]
说明
Remove-AzureADUserExtension cmdlet 从 Azure Active Directory (AD) 中删除用户扩展。
示例
示例 1
PS C:\> Remove-AzureADUserExtension -ObjectId TestUser@example.com -ExtensionName "Test Extension"
这将从用户中删除“测试扩展”属性: TestUser@example.com。
参数
-ExtensionName
指定扩展的名称。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
SetSingle
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-ExtensionNames
指定扩展名数组。
参数属性
| 类型: | |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
SetMultiple
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-ObjectId
指定对象 ID。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。