当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] 删除-MsolDevice - 删除 Office 365 中的设备

作者:精品下载站 日期:2024-12-14 06:25:50 浏览:14 分类:玩电脑

删除-MsolDevice - 删除 Office 365 中的设备


PowerShell 中的 Remove-MsolDevice cmdlet 可从 Microsoft Office 365 中删除设备对象。

下面给出了从 Azure Active Directory 中删除设备对象的语法。

Remove-MsolDevice
      -DeviceId <Guid>
      -ObjectId <Guid>
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

如何在 Office 365 中通过设备 ID 删除设备

要使用 PowerShell 在 Office 365 中按设备 ID 删除设备对象,请运行以下命令。

Remove-MsolDevice -DeviceId "44b30b26-aa3e-222c-3446-641fcf094fb1"

PowerShell 中的 Remove-MsolDevice cmdlet 可通过 -DeviceId 参数指定的设备 ID 删除设备,在本例中为“332A2AB4-6CD1-2A2B-AD12- C2A233AC26A7“。来自 Office 365。

如何通过对象 ID 删除设备

要删除通过 ObjectId 在租户中注册的设备,请运行以下命令。

Remove-MsolDevice -ObjectId "332A2AB4-6CD1-2A2B-AD12-C2A233AC26A7"

Remove-MsolDevice 命令从 Azure Active Directory 中删除 ObjectId 为“332A2AB4-6CD1-2A2B-AD12-C2A233AC26A7”的设备。

结论

希望上述有关如何使用Remove-MsolDevice从Office 365删除设备的文章对您有所帮助。

您可以在 ShellGeek 主页上找到有关 PowerShell Active Directory 命令和 PowerShell 基础知识的更多主题。

相关链接

获取 MsolDevice

启用-MsolDevice

禁用-MsolDevice

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯