Forum Discussion
Hjorthen
Jul 05, 2021Brass Contributor
Move PC's from Hybrid joined to AAD only
We are joining together 3 tenants, 1 of which is running a hybrid intune setup. Is there any possible way to move the hybrid PC's to the new tenant, and in the process "convert" them to AAD only? ...
NicklasAhlberg
Jul 06, 2021Brass Contributor
Hello, what about using the PowerShell command: "Remove-Computer", wrap it as an app and push it from Intune? The parameter: "-UnjoinDomainCredential" makes it possible for you to supply the credentials needed to unjoin the device. I would create a specific account for this with minimum privileges to do the job (do not use domain admin or similar).
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/remove-computer?view=powershell-5.1
//Nicklas Ahlberg
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/remove-computer?view=powershell-5.1
//Nicklas Ahlberg
Nathan Blasac
Jul 06, 2021Iron Contributor
This would probably be the route. Also, there will be a lingering Azure AD Object as well. Perhaps you'll need to do a dsregcmd /leave as well. Definitely a cool scenario to test out.