I know that you shouldn't just delete the folder in c:\Documents & Settings (or wherever) and should also delete "something" from the registry under HKEY_USERS. We sometimes want to delete all the user profiles off a XenApp server.
Bombprof works well - looks like it's crashed at start-up but it's just busy enumurating all the profiles. You can have hundreds on a XenApp server.
But we want to try and script the operation, maybe deleting profiles that are dormant. Any tips on how to cleanup the registry side as well? I've loaded regedit as administrator and HKEY_USERS doesn't list all users. I suspect just the current loaded ones.
PS. Is this really a StackOverflow question as it's going to have a programming solution?