Is there any way to modify or delete a ‘user variable’ on XP Pro
without login to the account?
The story is this. I got a laptop repaired but the OS (together with
defective speaker and audio board) was re-installed. The problem is the
Windows was installed with a username which I would like to replace.
Doing through Control Panel-> User Account was successful.
However, %USERPROFILE% and %HOMEPATH% still point to the wrong
folder. I managed to modify %HOMEPATH% through “Local Users and Groups”
-> Users, but %USERPROFILE% remained not pointing to the new folder
under C:\Documents and Settings. Then I decided to add USERPROFILE in
‘user variable’ to override the value used by XP. Now I can not login
any more through regular reboot or safe mode. I still can login as
Administrator.
How do I delete USERPROFILE that I created? From regedit, it seems I
can only access Environment Variable (user variable) defined by Current
User.
This gets complicated, as we’ll see in a moment. But for now, the
answer is actually pretty clear: you can’t. At least not easily, and in
any way that I would recommend.
In Windows, user names are special, and that means changing isn’t as
easy as you think.
]]>
<
That’s what I would have suggested but I would add one warning. If you create a new user and move over all the files from My Documents you will still have a lot of files in the Application Data and Local Settings folders which are easy to move but not necessarily easy to find which you wouldn’t want to lose such as stored emails, address books, browser bookmarks and more. So unless you know how to find and copy those you might want to put up with that not so desirable name on your folders.
Another consideration is encryption: if you have encrypted files XP will have generated keys based on the user. Copying them to a new user requires care!
Those are the Simple solutions…
However, he was getting to a solution to rename the variables (*though i have no idea how stable things will be after that, and i would not recommend it*) but as he found out, Windows stores separate registries for User and System. The User registry is located in %userprofile%\NTUSER.DAT and the System registries are in %systemroot%\system32\config under the names SOFTWARE, SYSTEM, DEFAULT, SAM, and SECURITY. You can read and edit these files using a registry hive tool. A Google search of “registry hive editor” should be enough to find dozens of such programs. Some are free, some are not.