• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6111
  • Last Modified:

Renaming User Profile in WXP

I have a user profile I would like to rename in WXP. I am logging on as Administrator but I get an error message "Cannot rename access denied". Also If I try to delete the profile I receive  an error message "Cannot delete ntuser: It is being used by another person or program. Can someone tell me how I can rename this profile?
1 Solution
zephyr_hex (Megan)DeveloperCommented:
are you sure that you are not logged in to the other profile?
one sure way to verify is to reboot.  then log directly into the Admin account and try to rename.
If you really can't rename the user or the profile, you could create a new user and copy all data from the old user/profile to the new, i would suggest you to do the following then:

Make sure that you don't login with the old username, before logging on with Administrator, because the ntuser.dat is still in use after logoff.

1) Logon with Administrator.
2) Create a new user with the Username you want, and give administrator priviliges to it.
3) Logon with this new user only one time to create the profile directory. Then reboot the machine.
4) Logon with Administrator, have a look in C:\Documents and Settings. There should be a directory with the newly defined username. Then navigate to the directory with the old username you wanted to rename. Click on Tools -> Folder Options in the Menu toolbar -> View -> Uncheck "Hide extensions for known file types"  -> Uncheck "Hide operating system files" -> Check "Show hidden files and folders". Then select all data in the old profile folder and click on "Copy", navigate to the new profile folder and choose Paste. Now all data from the old profile should have been copied to the new profile folder.
5) Reboot the machine and try to logon with the new user.

If you can logon with the new user properly, you can delete the old user and the old profile directory.

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now