How to recover or re-add device

%3CLINGO-SUB%20id%3D%22lingo-sub-1252497%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20recover%20or%20re-add%20device%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1252497%22%20slang%3D%22en-US%22%3EHi%20Luke%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20been%20in%20the%20same%20boat%20sometime%20ago.%20Recycle%20bin%20is%20not%20yet%20supported%20and%20you%20can%E2%80%99t%20recover%20deleted%20devices%2C%20it%E2%80%99s%20a%20feature%20that%20MSFT%20working%20on.%3CBR%20%2F%3E%3CBR%20%2F%3EAll%20the%20devices%20stays%20on%20soft%20delete%20for%2030%20days%2C%20I%20know%20because%20when%20I%20delete%20a%20device%20from%20Azure%20AD%2C%20It%20stays%20in%20PowerBI%20report%20for%2030%20days.%3CBR%20%2F%3E%3CBR%20%2F%3EHave%20you%20tried%20the%20ps%20below%20to%20add%20the%20device%20manually%3F%3CBR%20%2F%3E%3CBR%20%2F%3EPS%20C%3A%5C%26gt%3BNew-AzureADDevice%20-AccountEnabled%20%24true%20-DisplayName%20%22My%20new%20device%22%20-DeviceId%20%24guid%20-DeviceOSType%20%22OS%22%20-DeviceOSVersion%20%221.1%22%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ffeedback.azure.com%2Fforums%2F169401-azure-active-directory%2Fsuggestions%2F32127307-recycle-bin-for-deleted-devices%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ffeedback.azure.com%2Fforums%2F169401-azure-active-directory%2Fsuggestions%2F32127307-recycle-bin-for-deleted-devices%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1253164%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20recover%20or%20re-add%20device%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1253164%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F503735%22%20target%3D%22_blank%22%3E%40Moe_Kinani%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20looking%20at%20the%20command%20I%20assume%20this%20makes%20a%20spare%20device%20on%20AD%20to%20which%20I%20can%20then%20add%20the%20device%20to%20the%20already%20existing%20user%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1253993%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20recover%20or%20re-add%20device%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1253993%22%20slang%3D%22en-US%22%3ECorrect.%3CBR%20%2F%3E%3CBR%20%2F%3EIt%E2%80%99s%20the%20only%20workaround%20in%20your%20situation.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1250422%22%20slang%3D%22en-US%22%3EHow%20to%20recover%20or%20re-add%20device%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1250422%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20try%20and%20make%20a%20long%20story%20short%2C%20I%20have%202%20devices%2C%20Device%201%20one%20belonged%20to%20me%20and%20Device%202%20belonged%20to%20someone%20previously.%20I%20had%20taken%20Device%202%20because%20the%20specs%20we're%20better%20and%20am%20giving%20Device%201%20to%20a%20new-hire.%20My%20initial%20thought%20was%20to%20delete%20Device%201%20and%20just%20re-add%20it%20to%20Azure%20AD%20under%20the%20new%20owner.%20After%20I%20had%20done%20that%20I%20came%20across%20an%20extremely%20simple%20PowerShell%20cmdlet%20that%20made%20adding%20a%20new%20owner%20and%20removing%20the%20old%20owner%20very%20fast%20and%20painless.%20I%20used%20this%20cmdlet%20to%20add%20me%20as%20the%20new%20owner%20of%20Device%202%20but%20had%20already%20deleted%20Device%201.%20I'm%20now%20stuck%20trying%20to%20figure%20out%20how%20to%20get%20Device%201%20back%20into%20AD%20and%20change%20the%20owner.%20How%20can%20I%20do%20this%3F%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1250422%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Hi, 

To try and make a long story short, I have 2 devices, Device 1 one belonged to me and Device 2 belonged to someone previously. I had taken Device 2 because the specs we're better and am giving Device 1 to a new-hire. My initial thought was to delete Device 1 and just re-add it to Azure AD under the new owner. After I had done that I came across an extremely simple PowerShell cmdlet that made adding a new owner and removing the old owner very fast and painless. I used this cmdlet to add me as the new owner of Device 2 but had already deleted Device 1. I'm now stuck trying to figure out how to get Device 1 back into AD and change the owner. How can I do this?

Thanks

6 Replies
Hi Luke,

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...

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?

Correct.

It’s the only workaround in your situation.

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:

 

Fix Office 365 Error 70003: Your Organization Has Deleted This Device - Technipages

 

It might resolve your issue aswell

I deleted the device from my AzureAD and wanted the new named device to show here and the above solution worked for me. thank you.
me too!