0

The windows account name can be seen as one the folders in C:\Users. Assuming you changed your windows account name to something different to the folder, can programs see your new windows account name given admin rights?

2
  • Why is this something you want to hide? Mar 28 '20 at 11:44
  • @multithr3at3d probably because OP uses his/her real name as account name and thus fears that anybody getting into that PC can then link to his/her real identity.
    – A. Darwin
    Mar 28 '20 at 20:59
2

Programs can get the current username using GetUserName() and the path of profile directory e.g. using GetUserProfileDirectoryA(). They use API calls instead of deducing something from directory names. And no administrative rights required for these.

2
  • I'm sure the registry would contain this information as well. Mar 28 '20 at 11:44
  • 1
    My main point here was that there's no need for using such methods as checking filesystem (or registry), because this is not a secret information and there are standard ways to get it. Mar 28 '20 at 11:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.