Home ยป Office 365 ยป Disable-MsolDevice – Disable a Device in Office 365

Disable-MsolDevice – Disable a Device in Office 365

The Disable-MsolDevice cmdlet in PowerShell disables a device object in Microsoft Office 365.

The syntax to disable the device object in Azure Active Directory is given below.

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

In this article, we will discuss how to use the Disable-MsolDevice cmdlet in PowerShell to disable a device object in Office 365.

How to Disable a Device using a Device ID

To disable a device object using a device ID from Office 365 with PowerShell, run the following command.

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

The Disable-MsolDevice command disables the device with the device ID specified by the -DeviceId parameter.

Conclusion

I hope the above article on how to use the Disable-MsolDevice cmdlet in PowerShell to disable the device in Office 365 is helpful to you.

You can find more topics about PowerShell Active Directory commands and PowerShell basics on the ShellGeek home page.

Related Links

Get-MsolDevice

Remove-MsolDevice

Enable-MsolDevice