What are the rules regarding casing of values for environment variable USERNAME in Windows?

Helfe beim Thema What are the rules regarding casing of values for environment variable USERNAME in Windows? in Windows 10 Probleme um eine Lösung zu finden; One of my customers says that in his AD usernames have mixed case sometimes and besides that, that people are able to successfully login using another... Dieses Thema im Forum "Windows 10 Probleme" wurde erstellt von ThorstenSchöning, 10. Oktober 2018.

  1. ThorstenSchöning
    ThorstenSchöning Gast

    What are the rules regarding casing of values for environment variable USERNAME in Windows?


    One of my customers says that in his AD usernames have mixed case sometimes and besides that, that people are able to successfully login using another casing of usernames. So there might be an "ExampleUser" in the AD and Windows allows them to login with "exampleUSER" etc. as well.

    But what is the impact on the environment variable "USERNAME"?

    I have tested a bit myself without an AD and in all of my tests "USERNAME" had the value of the username as it has been created. So in case of "ExampleUser" created in Windows, using the login "EXAMPLEuser" provided "ExampleUser" as "USERNAME". That happened for RDP where users are free to input usernames as well as using "runas".

    My customer said that this is not the case for him at least sometimes, but instead if "ExampleUser" in the AD logs in using "exampleUSER", "USERNAME" really contains the value of the current login, "exampleUSER". I've found another question describing that as well:

    > For some users in this office, %USERNAME% is always in the case they type it when logging in.

    > For other users, %USERNAME has until recently always been in the canonical case (for a user logging in as elenasimpson it returns ElenaSimpson), but last week mysteriously started only doing this sometimes and the rest of the time returning it as typed. Rebooting often toggles to the other behaviour.

    What I did not found is any official docs from MS of what is the value of "USERNAME" under which setups and inputs of users. Are there any rules one can rely on?

    Thanks!

    Weiterlesen...
     
    #1 ThorstenSchöning, 10. Oktober 2018
  2. User Advert
Thema:

What are the rules regarding casing of values for environment variable USERNAME in Windows?

Die Seite wird geladen...

What are the rules regarding casing of values for environment variable USERNAME in Windows? - Ähnliche Themen - What are the

Forum Datum

Using the pen for powerpoint presentation

Using the pen for powerpoint presentation: The documentation says that I can use the pen with the Surface to "page forward" and "page back" when presenting a PPT preso. How do I set up that this works, the functionality is not available under the pen settings? Weiterlesen...
Surface 13. September 2018

Cancellation of the Windows-Insider-Programm

Cancellation of the Windows-Insider-Programm: Wie komme ich (84) schnellstens aus dem verflixten Insider-Programm heraus. Ich hebe den PC schon zweimal aufgefrischt und bin trotzdem immer noch im System drin. Wenn's diesmal mit euch nicht gelingt mein Problem zu lösen muss ich auf einen Mac umsteigen um meine...
Windows 10 Insider 13. März 2018

Ändern des Username

Ändern des Username: Moin, moin. Ist es möglich, den unter USERNAME (Eingabeaufforderung Befehl "set") eingetragenen Namen global zu ändern? Hintergrund: Das betreffende Gerät muss im Netzwerk auf eine serverbasierende Software zugreifen. Diese verfügt über eine Lizenzverwaltung, welche...
Windows 10 Probleme 22. März 2018

Windows Firewall Rules For Program on Removable Device

Windows Firewall Rules For Program on Removable Device: The following Setting: I have a program installed on a crypted HDD (True/Veracrypt) which is mounted after the user logs on to the same drive letter (E). Therefore, I think the device is considered as a removable device. Whenever I access the web the program is blocked...
Windows 10 Probleme 22. August 2017

the secret of society

the secret of society: Hallo zusammen, versuche es heute das erste Mal in einer Community, weil anders keine Lösung zu finden ist. Ich spiele seit 8 Monaten the Secret of Society. Seit 2 Wochen habe ich keine Verbindung zum Server, seit gestern sind meine Freunde weg, und ich komme keinen Level...
Windows 10 Probleme 2. April 2017

The product key entered does not match any of the Windows images available for...

The product key entered does not match any of the Windows images available for...: Hallo, ich habe vor einer Stunde einen Windows 10 Pro Lizenz erworben. Ich habe ein ISO Image herunter geladen und nun versuche ich, eine virtuelle Maschine damit aufzusetzen. Bei der Installation bekomme ich jetzt die Fehlermeldung "The product key entered does not match...
Windows 10 Probleme 11. Januar 2017

Low Volume turns of the sound for Headphones

Low Volume turns of the sound for Headphones: Example Video: https://www.youtube.com/watch?v=ktjXm5L1WH0 When the volume is too low, the Headphones just turn off. How to prevent that? The sound does not turn off at low volume for normal speakers aswell... Weiterlesen...
Windows 10 Probleme 7. August 2016
What are the rules regarding casing of values for environment variable USERNAME in Windows? [gelöst]