cmd Commands Flashcards
How can you change a local users password ?
While signed into an admin account:
Control Panel > User Accounts > Manage another account > select account. Click on change the password.
Computer Management > System Tools > Local Users and Groups > Users
Right-click on the user and select Set Password.
Netplwiz
Windows + R then type “netplwiz”. It will open the User Accounts window.
Select the user account and click on the Reset Password button.
cmd/PowerShell
Open PowerShell or Command Prompt with admin privileges.
Type net user to display a list of all user account on the computer. Note the exact name of the username. Type net user <username> <password>
Hit Enter, and it will change the Windows 10 user password.</password></username>
How to add a local user through cmd ?
net user /add <username><password></password></username>
How to delete a local user using cmd ?
net user /del <username></username>
How to set a local account as an admin ?
net localgroup administrators [username] /add
how to get a PCs serial number ?
cmd > “wmic bios get serialnumber”
how to display information about your network configuration/IP address ?
ipconfig
ipconfig /all
how to clear cmd window ?
type “cls”
how to refresh IP address ?
ipconfig /renew
How to view the route that a ping takes to its destination ?
tracert <dest>
tracert -h <# hops> <dest></dest></dest>
How to determine if you can reach a destination on a network ?
ping <dest></dest>
How to quickly update a group policy ?
gpupdate /force
How to open cmd termial in any folder ?
type “cmd” in destination path of the folder
cmd shutdown commands
shutdown /r
Runs the reboot command
-m: Brings the system down to maintenance (single user) mode
-k: Avoids shutting down the system
-i: Runs an interactive shutdown procedure
/m\computername: Shuts down the named remote computer
/p: Powers off the computer after the shutdown completes
How to create local account on new setup (not Microsoft account) ?
oobe\bypassnro
How to reset IP stack ?
netsh int ip reset
netsh winsock reset
restart PC