Forum Discussion
How to recover or re-add device
I have been in the same boat sometime ago. Recycle bin is not yet supported and you can’t recover deleted devices, it’s a feature that MSFT working on.
All the devices stays on soft delete for 30 days, I know because when I delete a device from Azure AD, It stays in PowerBI report for 30 days.
Have you tried the ps below to add the device manually?
PS C:\>New-AzureADDevice -AccountEnabled $true -DisplayName "My new device" -DeviceId $guid -DeviceOSType "OS" -DeviceOSVersion "1.1"
https://feedback.azure.com/forums/169401-azure-active-directory/suggestions/32127307-recycle-bin-for-deleted-devices
Hi, Moe_Kinani
From looking at the command I assume this makes a spare device on AD to which I can then add the device to the already existing user?
- Moe_KinaniMar 25, 2020Bronze ContributorCorrect.
It’s the only workaround in your situation.- Dutch2005nlJun 01, 2021Copper Contributor
I was able to resolve this using the following steps:
For Azure AD joined devices Windows 10 devices, take the following steps:
Open the command prompt as an administrator
Enter dsregcmd /forcerecovery (You need to be an administrator to perform this action).
Click “Sign in” in the dialog that opens up and continue with the sign in process.
Sign out and sign in back to the device to complete the recovery.https://docs.microsoft.com/en-us/azure/active-directory/devices/faq
Just for good measure I gave user temporarly administrator priviledges & followed the steps initially to remove the device
e.g.
1) dsregcmd /debug /leave
2) Reboot
3) Add user to local-admins
4) Log-off & on again
5) dsregcmd /forcerecovery (I was unable to use the GUI, it did not “work” e.g. no sign-in screen showed.)I used this for:
https://www.technipages.com/fix-office-365-error-70003-your-organization-has-deleted-this-device?unapproved=1033343&moderation-hash=4c1bd2119308ea6ec3a95df729a416f5#comment-1033343
It might resolve your issue aswell
- RestaurantITGuyFeb 02, 2024Copper Contributor
Dutch2005nlIt worked! Much thanks for being a life saver