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

[玩转系统] Disable-MsolDevice - 禁用 Office 365 中的设备

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

Disable-MsolDevice - 禁用 Office 365 中的设备


PowerShell 中的 Disable-MsolDevice cmdlet 可禁用 Microsoft Office 365 中的设备对象。

下面给出了在 Azure Active Directory 中禁用设备对象的语法。

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

在本文中,我们将讨论如何使用 PowerShell 中的 Disable-MsolDevice cmdlet 禁用 Office 365 中的设备对象。

如何使用设备 ID 禁用设备

要通过 PowerShell 使用 Office 365 中的设备 ID 禁用设备对象,请运行以下命令。

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

Disable-MsolDevice 命令可禁用具有由 -DeviceId 参数指定的设备 ID 的设备。

结论

希望上述有关如何在 PowerShell 中使用 Disable-MsolDevice cmdlet 禁用 Office 365 中的设备的文章对您有所帮助。

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

相关链接

获取 MsolDevice

删除-MsolDevice

启用-MsolDevice

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

取消回复欢迎 发表评论:

关灯