Answered by:
Rename User... One problem to fix...
-
I am trying to rename a user from (e.g.) OldUser to NewUser. I found the fix to the problem of still having c:\users\OldUser at this page http://support.microsoft.com/kb/2454362
The one remaining issue is that the Environment Variable USERNAME is still set to OldUser.
This is important to our application because we have various Access database applications where the username is stored in the table records so we can document which user made changes to specific records.
I tried to force the username by changing the USERNAME environment variable located here... Computer > Properties > Advanced system settings > Advanced > Environment Variables
but it still gave the OldUser result.
Anybody have any thoughts on whether this can be resolved?
TIA
bhata
Question
Answers
All replies
-
It will not update automatically.
Use %userprofile% instead of username.
Mark as Answer if it's worked. Thanks. Balamurugan_Subramaniyan
- Edited by Balamurugan_Subramaniyan Sunday, June 01, 2014 12:23 AM
-
It will not update automatically.
Use %userprofile% instead of username.
Mark as Answer if it's worked. Thanks. Balamurugan_Subramaniyan
That does not work. %userprofile% returns "c:\Users\NewUser" not "NewUser". And stripping out the last directory name is not correct either since that directory name can be anything.
-
Try running lusrmgr.msc
Expand the users folder. Right click on the desired user, select rename, then modify the username. Log off/log on. Check value of %username%
-
Try running lusrmgr.msc
Expand the users folder. Right click on the desired user and modify the username. Log off/log on. Check value of %username%THAT'S IT!!!!! Exactly what I needed! Thanks mystifeid!!!!
With all the searching I did and all the experiments I tried, I never thought this was solvable. Hopefully I won't find any other gotcha's!!!