Know your username with an MS DOS command

Solved
Thierry-Alain Posted messages 32 Status Member -  
Thierry-Alain Posted messages 32 Status Member -
Hello,

I want to reset the password on my computer running Windows 7. I followed a process I found through online research. But when I got to the point where I needed to change the password, it says "The username cannot be found."
Actually, I used this command: "net user username new_password."
Now, I wanted to know if there is a MS DOS command that allows me to find out my username? I could completely reinstall the system, but that would waste my time. So I wanted to know how to find out my username in MS DOS.
Thank you for your help.
Configuration: Windows 8 / Internet Explorer 10.0

2 answers

  1. Anonymous user
     
    Hello,
    You simply type: net user
    4
    1. Thierry-Alain Posted messages 32 Status Member
       
      Lacharpente, you are simply great, you have brought me even more value, howçamarche really needs people like you. Once again, thank you. Because last time when I had a problem with booting from USB with notebooks that come with original Windows, you didn't hesitate to help me. Thank you and MERRY CHRISTMAS to you. Be blessed.
      0
    2. Anonymous user
       
      No problem and happy end of the year celebrations! :-)
      0
    3. Thierry-Alain Posted messages 32 Status Member
       
      Thank you.
      0
  2. phil2k Posted messages 10841 Registration date   Status Contributor Last intervention   2 339
     
    Hello

    to change the password, there's an easier way: CTRL-ALT-DELETE, then change the password.

    otherwise, the net user command lists the users

    --
    "If there is no solution, it means there is no problem"
    -1
    1. Thierry-Alain Posted messages 32 Status Member
       
      Phil2k, thanks for your input. But when I executed your command, it didn't yield anything.
      Lacharpente's response is the correct one.
      0
    2. phil2k Posted messages 10841 Registration date   Status Contributor Last intervention   2 339
       
      You're welcome
      he was faster than me
      but I was right too: otherwise, the net user command lists the users
      it's just that I didn't put it in bold ......
      0