I can not for the life of me get rid of old user profile folders. I need to get rid of some screw ups and recreate with the same file name.
I can not for the life of me get rid of old user profile folders. I need to get rid of some screw ups and recreate with the same file name.
This solution was given on other website which will help you to delete user profile folders on server 2008:
1. Identify the SID of the user whose profile needs to be deleted.
- I typically use ADSI Edit on a domain controller to do this. Open ADSI Edit, navigate through the OU’s until you find the user, CN=”Username”, right-click and choose properties. Scroll to the object property labeled “objectSid”. Document that SID because you will need it shortly.
2. Verify that the user is not logged into the server.
- From a command prompt type “query user” and verify that the user is not listed.
3. Open the folder directory where the server user profiles are stored.
- Server 2008 default is “C:\%USERNAME”.
4. Delete the profile folder for the user.
The problem is not on the server it's sel it's with a domain user profile folder location that will not allow me as an admin to get rid of the folder it's self even after a user is gone from AD. It's %username%.v2 files that say I have no acces to.
Are you logged in with full Admin privileges to delete the folder. On the off-chance that you are logged in as an admin, but the folder just won't delete, restart the computer to make sure it's not in use, then open a command prompt.
type:
del "\\[computername]\c$\documents and settings\administrator\desktop\[foldername]" /s
Bookmarks