Updated 2021-06-09 – Added some additional cleanup in the script to make sure it removes the CM client, otherwise the computer will be “co-managed” in Intune even if it isn’t. Also added info about the SkipOOBE in unattend.xml I am writing this post because I am lazy and already have Configuration Manager in my lab….