0% found this document useful (0 votes)
25 views

Useful Command Prompt Commands

The document provides a list of useful CMD commands for system information, disk and file management, printers, internet connectivity, users, and more. It also includes buttons to press for boot menus and diagnostics on common laptop brands like Lenovo, HP, and Dell.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Useful Command Prompt Commands

The document provides a list of useful CMD commands for system information, disk and file management, printers, internet connectivity, users, and more. It also includes buttons to press for boot menus and diagnostics on common laptop brands like Lenovo, HP, and Dell.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 3

Ell’s Useful CMD Command list

***Commands listed are indicative of Reference Building, not of knowledge memorized or known***

SYSTEM:

systeminfo Polls system to pull most important info about system


|MORE Receive more detailed information about the system.

sfc

/verifyonly Check the integrity but don’t repair the files.

/scanfile Scan the integrity of specific files and fix if corrupted.

/verifyfile Verify the integrity of specific files but not repair them.

/offbootdir Use this to do repairs on an offline boot directory.

/offwindir Use this to do repairs on an offline Windows directory.

/offlogfile Specify a path to save a log file with scan results.

/scannow Scans overall system to find corrupt file; replaces.

chkdsk /f [Drive-letter] Checks and repairs: file fragment, disk error, bad sector

powercfg /list Display how much power is being used.


/batteryreport Outputs battery usage report to a file path listed.

wmic path softwarelicensingservice get OA3xOriginalProductKey


Check Your Windows License Key

getmac Get MAC address of your PC

driverquery List all current Windows Drivers alongside date/names

wmic diskdrive get model,status Check Drive health Condition.

bootrec /fixmbr Scans and fixes MBR

bootrec /fixboot Scans and fixes boot record.

Bootrec /scanOs Checks for drives capable of Windows install.

PRINTERS:

wmic printer list brief Lists printers in CMD


Ell’s Useful CMD Command list

INTERNET/CONNECTIVITY

Ipconfig Lists IP information for device

/all Lists IP information for each adapter

/release Releases IP configuration

/renew Obtains IP configuration

/flushdns flushes dns cache

nslookup Finds records pertaining to name server of any domain

ping [IP address] Tests connection between hops

netstat Lists all active TCP connections

tracert Identifies number of & hops to destination

pathping More information than tracert, same job

netsh wlanshow profile SSID key=clear Show Wifi Password

netstat Monitor network connections


-ano 1 Shows all open connections, which port (auto-refreshes)

USERS

finger Get information about the user (login, etc)

FILES/DIRECTORIES

assoc Lists all known file associations

Fc /a [File1.txt] [File2.txt] Will compare two ascii files.

Fc /b [Picture1.jpg] [Picture2.jpg] Will do a binary compare on two images.

Chdir Tells you the name of the current directory

tree Show folder structure for specified drive/location

prompt Change the command from prompt from C:\ to other


Ell’s Useful CMD Command list

Net use [drive letter]: \\[other-computer-name]\[Share] /persistent:yes


“persistent” switch makes drive remapped every login

tasklist List of all programs running on your system at time

taskkill -im [name of task] Kill task from running

driverquery List of all drivers installed on your computer

mkdir Makes a new directory on a specified path

cleanmgr Clean up temp files and recycle bin automatically

dir Displays file and folders list

diskpart Change partitions of storage, both internal and external

USEFUL BUTTONS TO PRESS

Lenovo – F12 (boot menu)


- F10 (Lenovo Diagnostics)
- F8' or 'shift+F8 (Advanced options menu -> Safe Mode)

HP - Esc, F10, F1 (Enter Boot Menu, note: F1 rarely used)


- ESC, when HP Splash Screen appears, then F2 at menu -> (Diagnostics)

Dell - F2, at Dell Logo or keyboard LEDs first flash (System Setup)
- F12 (Enter Boot Menu / Diagnostics)
- Volume-up, immediately at power on (Boot Menu, some models)

[command] /? Find information about Commands


ctrl+c Abort a command

You might also like