Removing an Business Premium Azure account from a shared laptop

%3CLINGO-SUB%20id%3D%22lingo-sub-1611468%22%20slang%3D%22en-US%22%3ERemoving%20an%20Business%20Premium%20Azure%20account%20from%20a%20shared%20laptop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1611468%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20the%20good%20old%20days%2C%20you'd%20use%20delprof.exe%20or%20delprof2.exe%20to%20delete%20unused%20user%20profiles%20from%20a%20laptop%20when%20using%20Active%20Directory%20accounts.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20how%20do%20you%20do%20the%20same%20with%20Azure%20AD%20joined%20laptops%3F%20Sure%2C%20you%20can%20remove%20the%20user%20account%20from%20the%20Other%20users%20panel%20in%20settings%20but%20that%20does%20not%20delete%20the%20profile%20folder%20in%20C%3A%5CUsers%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ANpSo6B%5B1%5D.png%22%20style%3D%22width%3A%20498px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214673i7371AEA652901EAB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22ANpSo6B%5B1%5D.png%22%20alt%3D%22ANpSo6B%5B1%5D.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThis%20is%20the%20folder%20after%20removing%20that%20account%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yB9M1H2%5B1%5D.png%22%20style%3D%22width%3A%20606px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214674iBDEFAF6A4020B720%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22yB9M1H2%5B1%5D.png%22%20alt%3D%22yB9M1H2%5B1%5D.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20the%20registry%20is%20still%20full%20of%20the%20account's%20settings.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1611608%22%20slang%3D%22en-US%22%3ERe%3A%20Removing%20an%20Business%20Premium%20Azure%20account%20from%20a%20shared%20laptop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1611608%22%20slang%3D%22en-US%22%3E%3CP%3EAnd%20don't%20be%20tempted%20to%20try%20manually%20removing%20the%20folder%20in%20C%3A%5CUsers%20manually%20(e.g.%20using%207-Zip%20File%20Manager%20in%20admin%20mode%20or%20PowerShell)%20as%20you'll%20end%20up%20with%20that%20user%26nbsp%3B%3CSTRONG%3Enever%20been%20able%20to%20logon%20to%20that%20laptop%20again%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22WwUfvAm%5B1%5D.png%22%20style%3D%22width%3A%20764px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214682i444E18918CD70139%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22WwUfvAm%5B1%5D.png%22%20alt%3D%22WwUfvAm%5B1%5D.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20assume%20this%20is%20because%20the%20registry%20hive%20is%20still%20there%20but%20it%20just%20gets%20totally%20confused%20because%20NTUSER.DAT%20etc%20has%20disappeared%20from%20C%3A%5CUsers.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20be%20fair%2C%20I've%20been%20looking%20for%20a%20solution%20to%20this%20for%20several%20years%20now%20so%20not%20hopeful%20that%20a%20fix%20is%20forthcoming.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOf%20course%2C%20remove%20account%20from%20settings%20should%20of%20course%20totally%20remove%20the%20account.%20Should%20probably%20raise%20that%20as%20a%20bug%3F%20You%20can%20tell%20it's%20not%20doing%20much%20as%20there%20isn't%20the%20prompt%20to%20delete%20the%20user's%20data%20as%20well%20-%20as%20you%20still%20get%20when%20removing%20a%20local%20or%20Microsoft%20account.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1663371%22%20slang%3D%22en-US%22%3ERe%3A%20Removing%20an%20Business%20Premium%20Azure%20account%20from%20a%20shared%20laptop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1663371%22%20slang%3D%22en-US%22%3E%3CP%3ESo%20I'm%20guessing%20there%20isn't%20a%20way%20to%20remove%20old%20accounts%20except%20to%20rebuild%20the%20PC%20%3A(%3C%2Fimg%3E%26nbsp%3BWhat's%20the%20best%20uservoice%20to%20raise%20this%20in%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1683839%22%20slang%3D%22en-US%22%3ERe%3A%20Removing%20an%20Business%20Premium%20Azure%20account%20from%20a%20shared%20laptop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1683839%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F408911%22%20target%3D%22_blank%22%3E%40rob_nicholson_helios%3C%2FA%3E%26nbsp%3Bhave%20you%20considered%20Autopilot%20and%20specifically%20the%20Windows%20Autopilot%20Reset%20feature%20-%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fautopilot%2Fwindows-autopilot-reset%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fautopilot%2Fwindows-autopilot-reset%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1720404%22%20slang%3D%22en-US%22%3ERe%3A%20Removing%20an%20Business%20Premium%20Azure%20account%20from%20a%20shared%20laptop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1720404%22%20slang%3D%22en-US%22%3EAutopilot%20is%20something%20that%20we're%20considering.%20The%20success%20will%20depend%20upon%20how%20easy%20it%20is%20to%20deploy%203rd%20party%20software.%20Last%20time%20we%20looked%20at%20this%2C%20it%20had%20a%20long%20way%20to%20go%20to%20reach%20the%20abilities%20of%20SCCM.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1724567%22%20slang%3D%22en-US%22%3ERE%3A%20Removing%20an%20Business%20Premium%20Azure%20account%20from%20a%20shared%20laptop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1724567%22%20slang%3D%22en-US%22%3EI%20caution%20about%20the%20context%20that%20Autopilot%20and%20SCCM%20are%20alternatives%20to%20each%20other%2C%20i.e.%20use%20one%20or%20the%20other.%20Instead%20consider%20that%20Autopilot%20and%20SCCM%20are%20meant%20to%20be%20complementary%20to%20each%20other.%20When%20you%20look%20at%20the%20evolution%20of%20Microsoft's%20endpoint%20management%2C%20in%20the%20early%20days%20there%20was%20SCCM%20and%20Intune%20which%20at%20first%20were%20completely%20separate%20tools%20designed%20to%20manage%20different%20types%20of%20devices.%20Later%20Microsoft%20enabled%20organizations%20to%20use%20both%20of%20these%20tools%20at%20the%20same%20time%20to%20allow%20organizations%20to%20leverage%20the%20feature%20sets%20of%20both%20to%20optimally%20manage%20different%20device%20types%20using%20the%20appropriate%20tool.%20Now%20with%20Microsoft%20Endpoint%20Manager%2C%20Microsoft%20is%20truly%20providing%20a%20unified%20management%20portal%20for%20both%20tools.%20So%20where%20does%20Autopilot%20fit%20in%20this%3F%20Autopilot%20is%20a%20cloud%20based%20zero%20touch%20deployment%20solution%20%2F%20feature%20that%20Microsoft%20%22added%22%20to%20customer's%20that%20have%20Azure%20AD%20P1%2C%20Intune%20and%20Windows%2010.%20Again%2C%20the%20point%20being%20that%20Autopilot%20is%20meant%20to%20integrate%20and%20augment%20the%20already%20existing%20SCCM%20%2F%20Intune%20device%20%2F%20application%20management%20solutions%20rather%20than%20replace%20them.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1883290%22%20slang%3D%22en-US%22%3ERE%3A%20Removing%20an%20Business%20Premium%20Azure%20account%20from%20a%20shared%20laptop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1883290%22%20slang%3D%22en-US%22%3Eok%20how%20are%20you%3F%3F%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2268610%22%20slang%3D%22en-US%22%3ERe%3A%20Removing%20an%20Business%20Premium%20Azure%20account%20from%20a%20shared%20laptop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2268610%22%20slang%3D%22en-US%22%3E%3CP%3EDid%20you%20ever%20find%20a%20good%20way%20to%20delete%20Azure%20accounts%20from%20shared%20laptops%3F%20I%20am%20in%20the%20same%20boat.%20I%20like%20the%20idea%20of%20Autopilot%20Reset%2C%20however%2C%20it%20wipes%20all%20of%20the%20installed%20software%20which%20I%20definitely%20do%20not%20want%20to%20do.%20We%20have%20all%20of%20our%20software%20configured%20to%20deploy%20from%20Endpoint%20Manager%2C%20but%20don't%20want%20to%20wait%20for%20it%20to%20install%20after%20a%20reset!%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F408911%22%20target%3D%22_blank%22%3E%40rob_nicholson_helios%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

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:

 

ANpSo6B[1].png

This is the folder after removing that account:

 

yB9M1H2[1].png

 

And the registry is still full of the account's settings.

7 Replies

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:

 

WwUfvAm[1].png

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.

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?

@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 

Autopilot is something that we're considering. The success will depend upon how easy it is to deploy 3rd party software. Last time we looked at this, it had a long way to go to reach the abilities of SCCM.
I caution about the context that Autopilot and SCCM are alternatives to each other, i.e. use one or the other. Instead consider that Autopilot and SCCM are meant to be complementary to each other. When you look at the evolution of Microsoft's endpoint management, in the early days there was SCCM and Intune which at first were completely separate tools designed to manage different types of devices. Later Microsoft enabled organizations to use both of these tools at the same time to allow organizations to leverage the feature sets of both to optimally manage different device types using the appropriate tool. Now with Microsoft Endpoint Manager, Microsoft is truly providing a unified management portal for both tools. So where does Autopilot fit in this? Autopilot is a cloud based zero touch deployment solution / feature that Microsoft "added" to customer's that have Azure AD P1, Intune and Windows 10. Again, the point being that Autopilot is meant to integrate and augment the already existing SCCM / Intune device / application management solutions rather than replace them.

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