New
#1
Setting %USERNAME% in windows 7
I have a laptop with a company that uses a domain server.
There are no local accounts on the company laptops, but you can still log in using previous credentiails.
My problem:
When I log in without the domain present (Example: Network cable unplugged) to get on the company wireless or VPN from home, the %USERNAME% variable is set to upper case.
This wouldn't be a huge issue, except that some programs/scripts rely on the username variable being lowercase.
My question: Is there a way to force the username lowercase, when logging in to a system without the domain present?
I've tried changing it in the registry (HKCU\Volitale Environment) tried setting it in Environment Variables and tried setx USERNAME xxx /m
Any other ideas?