How to Remove Windows Device from Azure AD

Note 1: Please save your data before remove the AAD computer from Azure AD. Otherwsie, you may lose the data.

Note 2: Please remember your local administrator credentials or create a new local administrator account. Otherwise, you may have a problem to login.

Note 3: After you unregister the windows 10/11 device, you will lose device access to school or work resources.

A. Remove Windows Device from Azure AD

  • Login to Windows with your organizational account.
  • Go to Start -> Settings.
  • Select Accounts > Access work or school.
  • Select the connected Azure AD domain account that you want to remove, and click Disconnect.

  • Click Yes to confirm the removal of the account. This will remove your access to resources like email, apps, networks, and all content associated with it. Your organization might also remove some data stored on this device.
  • Click on Disconnect, After disconnecting you won’t be able to sign in to this PC with your organization’s account.

Note: If this PC has BitLocker installed and running, make sure you save a copy of the BitLocker recovery key somewhere other than this PC.

  • Enter the sign-in info for a local administrator account. This can be a Microsoft account or a local account. Here Enter the username and password for an existing account, If you don’t have one, you will need to create a new account, click OK.

  • Click on Restart now or Restart later to remove windows device from Azure AD join, After restarting, your PC won’t be joined to Azure AD. You will need to sign in with another user account.

  • Restart the computer and login. To validate the Join Status, run this command; dsregcmd /status

B. Remove Windows Device from Azure AD using Azure Intune

  • Sign In to Azure Portal https://portal.azure.com/.
  • Navigate to the Azure AD, Select the device from the list which you want to remove.
  • Click Delete con on the top to remove it.

C. Remove Windows Device from Azure AD using Command Line

  • Reseat steps on B and click on the device to copy the device’s Object ID

  • You can use the Azure Active Directory PowerShell module, To Install Azure AD Module, Type the following command in PowerShell.
Install-Module AzureAD
  • You will be prompted to confirm the installation and import of the NuGet provider. Enter Y in all confirmation dialogs. The package installation will take a few minutes, wait for the installation to finish, then close the PowerShell window.
  • Type the Connect-AzureAD cmdlet to connect an authenticated account to use for Azure Active Directory cmdlet requests. You can use this authenticated account only with Azure Active Directory cmdlets.
  • Once you connected,

Type the Remove-AzureADDevice cmdlet to remove a device from Azure Active Directory (AD). This command removes the specified windows device from Azure AD Join.

Remove-AzureADDevice -ObjectId "1c913ae1-ea7f-4589-8b42-b2140a13c304"

-ObjectId
Specifies the object ID of a device in Azure AD.
-Remove-AzureADDevice
Remove Windows device from Azure AD Join. 

Published by

Bob Lin

Bob Lin, Chicagotech-MVP, MCSE & CNE Data recovery, Windows OS Recovery, Networking, and Computer Troubleshooting on http://www.ChicagoTech.net How to Install and Configure Windows, VMware, Virtualization and Cisco on http://www.HowToNetworking.com