When I log for first time in Windows 8 this is my user folder:
The computername is appended to the username (lol), but the real username is this:
I have many scripts wich works with "%username%" environment variable instead "%userprofile%", and I can't and I won't change them.
I need to modify IN A SILENT WAY this Windows 8 dissaster to return the correct name to my user folder name, how I can do it?
I'm looking for the way to do it in a silent/unatended way 'cause I need to do it for a unatended installation of windows 8, so I can't manually create a account to restart to log in other account or strange things.
I hope this can be done with some instructions in a batch or vbs script to run the script at the post-installation part of a Windows 8 installation...
PS: I saw in related questions that sometimes the user fodler name is "C:\Users\Username_000" but is not in my case so no matter.
So... If can be done with a script then I can imagine which would be the first instructions in a pseudo way:
Dim Username as string = expand_variable(%username%) -> (Administrador) Dim ComputerName as string = expand_variable(%Computername%) -> (ELEKTRO-PC) Dim FolderName as string = expand_variable(%userprofile%).substring.lastindexof("\") -> (Administrador.ELEKTRO-PC) ' Now we have the correct user name to rename the folder, ' but now what is the next step to do? to let windows to rename the userfolder...
Thanks for read.