cmd Commands Flashcards

1
Q

How can you change a local users password ?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to add a local user through cmd ?

A

net user /add <username><password></password></username>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to delete a local user using cmd ?

A

net user /del <username></username>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to set a local account as an admin ?

A

net localgroup administrators [username] /add

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how to get a PCs serial number ?

A

cmd > “wmic bios get serialnumber”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

how to display information about your network configuration/IP address ?

A

ipconfig
ipconfig /all

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

how to clear cmd window ?

A

type “cls”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

how to refresh IP address ?

A

ipconfig /renew

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How to view the route that a ping takes to its destination ?

A

tracert <dest>
tracert -h <# hops> <dest></dest></dest>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How to determine if you can reach a destination on a network ?

A

ping <dest></dest>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How to quickly update a group policy ?

A

gpupdate /force

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How to open cmd termial in any folder ?

A

type “cmd” in destination path of the folder

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

cmd shutdown commands

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How to create local account on new setup (not Microsoft account) ?

A

oobe\bypassnro

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How to reset IP stack ?

A

netsh int ip reset
netsh winsock reset
restart PC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly