Solved Net user command


yousaf465

Well-known member
Local time
2:59 PM
Posts
98
OS
Windows 11
I got locked out of my local Windows 11 account, due to fingerprint sensor not working.
I do have access via another administrator account. Now I want to change the password for my main account which "Yousaf Saleem Malik"
How do change it using the Net user command ? The output for Net User command is below


Code:
C:\WINDOWS\system32>Net User

User accounts for \\DESKTOP-V2MBJIL

-------------------------------------------------------------------------------
admin                    Administrator            DefaultAccount
Guest                    WDAGUtilityAccount       Yousaf Saleem Malik
The command completed successfully.


If try to change password using the Net User Yousaf Saleem Malik NewSecretPass command this happens

Powershell:
C:\WINDOWS\system32>net user Yousaf Saleem Malik NewSecretPass 
The syntax of this command is:

NET USER
[username [password | *] [options]] [/DOMAIN]
         username {password | *} /ADD [options] [/DOMAIN]
         username [/DELETE] [/DOMAIN]
         username [/TIMES:{times | ALL}]
         username [/ACTIVE: {YES | NO}]

how to change the password for user Yousaf Saleem Malik?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Dell/XPS 7590
    CPU
    i7-9750H
    Memory
    16GB
    Graphics Card(s)
    GTX 1650
Found the answer
using double quotes around the username
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Dell/XPS 7590
    CPU
    i7-9750H
    Memory
    16GB
    Graphics Card(s)
    GTX 1650
Well done for finding the solution to this on your own.

Windows commands always require " to be wrapped around usernames, folder paths & filenames that contain spaces or ampersands [&].
Net User "Yousaf Saleem Malik"
Dir "C:\Program Files\Intel"
Dir "C:\Program Files\Intel\Intel*"

I always set single-word usernames to avoid such complications.

All the best,
Denis



Welcome to ElevenForum.

It's really worth making time to browse through the Tutorial index - there's a shortcut to it at the top of every page [within the Tutorials dropdown list].
- At the foot of the Tutorial index is a shortcut to download it as a spreadsheet.
- I download a new copy each month.
- By downloading it as a spreadsheet I can benefit from Excel's excellent filtering capabilities when I search for topics of interest.
- Tutorials are also listed at Tutorials - there's a shortcut to that at the top of every page.

You can search ElevenForum using the search box in the top-right corner of all ElevenForum webpages or using Advanced Search - ElevenForum
- You can also search ElevenForum threads in many general search engines, such as Google, by adding site:elevenforum.com after your search term. For example,
Taskbar setup site:elevenforum.com
- [This is what the search box in the top-right corner of ElevenForum webpages does automatically]
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447

Latest Support Threads

Back
Top Bottom