To check the status of a device's AAD join, open a CMD window as Administrator and enter the following command:
dsregcmd /status
Scroll up to the top of the information that appears and look for Device Status > AzureAdJoined:
![Administrator: Command Prompt •licrosoft Windows [Version 18.8.19844.1886] (c) microsoft Corporation. All rights reserved . - : sregcmd / status Device State AzureAdJoined Domain Joined DomainName . Device Name YES YES TITAN CBLX-VWELLENREI . Titan . local](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48268096487/original/NJAc8nLUOhtYAahUBe34DxQIKWMeS1iKtQ.png?1670449566)
If AzureAdJoined shows NO, run the following command (still as admin):
dsregcmd /join
Reboot the device
If you are getting "Get access to this resource" errors when attempting to log into your Microsoft account, the above fix may resolve that.
Even if AzureAdJoined shows as YES, the login error can still occur. This may be because the device is joined to Wedgewood's Azure Tenant.
To confirm, run "dsregcmd /status" and then check under Tenant Details > TenantId. If the ID starts with a "c" then the computer is joined to Wedgewood.
This can be resolved by running the following commands:
dsregcmd /leave
dsregcmd /join
Reboot the device
After the reboot, run "dmregcmd /status" once more and check the TenantId. You will know if it has successfully joined Civic's Azure Tenant if the ID starts with "5ce":
