Forum Discussion
Cammertime
Aug 23, 2022Copper Contributor
Device shows connected to work or school account but device does not show up in azure AD for user
The company device was logged into with the users O365 credentials during initial device setup. When I go into settings on the Windows 10 Pro device, it shows he is connected to the "Work or school ...
Cammertime
Aug 23, 2022Copper Contributor
FYI, after research on techblogs like this here is how I solved the issue.
Opened CMD as administrator, typed: dsregcmd /status
The results were:
Device Details | DeviceAuthStatus = FAILED. Device is either disabled or deleted.
I then typed in CMD prompt: dsregcmd /forcerecovery
This code requires the user to log back into their Microsoft O365 account.
User MUST then re-enter a PIN to ensure they don't get locked out of their device.
I then logged out of the user account and logged back into the user account.
I then checked Azure AD for that user and the device was listed.
*Note: I did have to elevate the users account temporarily to admin in order to run the commands. I also changed the device name to something easier for me to search for if I had to within Azure AD.
Opened CMD as administrator, typed: dsregcmd /status
The results were:
Device Details | DeviceAuthStatus = FAILED. Device is either disabled or deleted.
I then typed in CMD prompt: dsregcmd /forcerecovery
This code requires the user to log back into their Microsoft O365 account.
User MUST then re-enter a PIN to ensure they don't get locked out of their device.
I then logged out of the user account and logged back into the user account.
I then checked Azure AD for that user and the device was listed.
*Note: I did have to elevate the users account temporarily to admin in order to run the commands. I also changed the device name to something easier for me to search for if I had to within Azure AD.