Aug 25 2020 10:10 AM
In the good old days, you'd use delprof.exe or delprof2.exe to delete unused user profiles from a laptop when using Active Directory accounts.
So how do you do the same with Azure AD joined laptops? Sure, you can remove the user account from the Other users panel in settings but that does not delete the profile folder in C:\Users:
This is the folder after removing that account:
And the registry is still full of the account's settings.
Aug 25 2020 10:52 AM
And don't be tempted to try manually removing the folder in C:\Users manually (e.g. using 7-Zip File Manager in admin mode or PowerShell) as you'll end up with that user never been able to logon to that laptop again:
I assume this is because the registry hive is still there but it just gets totally confused because NTUSER.DAT etc has disappeared from C:\Users.
To be fair, I've been looking for a solution to this for several years now so not hopeful that a fix is forthcoming.
Of course, remove account from settings should of course totally remove the account. Should probably raise that as a bug? You can tell it's not doing much as there isn't the prompt to delete the user's data as well - as you still get when removing a local or Microsoft account.
Sep 14 2020 01:08 AM - edited Sep 14 2020 01:09 AM
Sep 14 2020 01:08 AM - edited Sep 14 2020 01:09 AM
So I'm guessing there isn't a way to remove old accounts except to rebuild the PC :( What's the best uservoice to raise this in?
Sep 18 2020 07:06 AM
@rob_nicholson_helios have you considered Autopilot and specifically the Windows Autopilot Reset feature -
https://docs.microsoft.com/en-us/mem/autopilot/windows-autopilot-reset
Sep 28 2020 07:08 AM
Sep 29 2020 07:07 AM
Nov 12 2020 08:51 PM
Apr 12 2021 12:35 PM
Did you ever find a good way to delete Azure accounts from shared laptops? I am in the same boat. I like the idea of Autopilot Reset, however, it wipes all of the installed software which I definitely do not want to do. We have all of our software configured to deploy from Endpoint Manager, but don't want to wait for it to install after a reset! @rob_nicholson_helios
Nov 06 2023 01:51 AM - edited Nov 16 2023 01:13 AM
After deploying several VMs for a critical project, I noticed that my VMs were experiencing intermittent connectivity problems. Despite setting up the appropriate network configurations and security groups, I couldn't establish a stable connection to the VMs, and they frequently became unresponsive. This situation disrupted my milwaukee women's heated jacket project timeline and made it challenging to work effectively in the Azure environment.