Recover a deleted device (PC) from AAD

%3CLINGO-SUB%20id%3D%22lingo-sub-856789%22%20slang%3D%22en-US%22%3ERecover%20a%20deleted%20device%20(PC)%20from%20AAD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-856789%22%20slang%3D%22en-US%22%3EHi.%20We%20are%20using%20Intune%20and%20Autopilot%20to%20enroll%20new%20PCs.%20By%20mistake%20we%20deleted%20a%20device%20in%20Azure%20portal%20that%20already%20was%20enrolled.%20Now%20the%20user%20cannot%20login%20on%20her%20computer.%20We%20have%20tried%20to%20run%20%E2%80%9CRestore-AzureADMSDeletedDirectoryObject%E2%80%9C%20in%20Powershell%2C%20but%20i%20says%20it%20cannot%20find%20object%20ID.%20Is%20there%20any%20other%20way%20around%20this%2C%20or%20do%20we%20need%20reset%20Windows%2010%20and%20re-enrol%3F%20Pretty%20scary%20how%20easily%20you%20can%20delete%20a%20device%20with%20no%20warnings%20about%20the%20consequences.%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-856789%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Visitor
Hi. We are using Intune and Autopilot to enroll new PCs. By mistake we deleted a device in Azure portal that already was enrolled. Now the user cannot login on her computer. We have tried to run “Restore-AzureADMSDeletedDirectoryObject“ in Powershell, but i says it cannot find object ID. Is there any other way around this, or do we need reset Windows 10 and re-enrol? Pretty scary how easily you can delete a device with no warnings about the consequences.