We take no responisbility for the use of this script. # We recommend you backup your registry prior to running. #This script checks for devices registered to AzureAD and removes them so you can successfully perform an AzureAD join. It needs to be run from a powershell as administrator prompt. ![]() Simply copy the powershell script below and save it. You will need to ensure the execution policy is set to allow scripts to run on the computer (set-executionpolicy unrestricted I have shared the powershell script below that we have created. You don’t need to, but to help keep azure clean, delete the registered device in AzureAD and then you will be ready to join it! ![]() We also need to clean up its tasks and remove the folder. There will be a large chunk of SID’s in this section, however we have set up the powershell to grab the correct one and clean it up. ![]() We have found the relevant information that has the device linked up and have created an easy powershell script to clear out the information for you WITHOUT deleting any user accounts/profiles and allow you to get the device AzureAD Joined.įor your knowledge, the main registry key that controls this is stored here
0 Comments
Leave a Reply. |