MS-DOS Commands List – Most Common – Used – Useful

 

BONUS: Here Are A Few Keyboard Shortcuts For Windows As Well:

(Scroll Down For DOS Commands)

 

Keyboard Shortcut(s) Combination: WHAT THE Shortcut(s) DOES:
Select AllCTRL + A
CopyCTRL + C
PrintCTRL + P
PasteCTRL + V
CutCTRL + X
Locks the screenWindows + L
Open settings panelWindows + I
Open the system panelWindows + Pause / Break
Turns on/Off the wireless network adapter on some devicesFN + Print Screen / System Request
Opens the Windows “Run” box and then runs Command Prompt (CMD) (As User)Windows + R and then type “CMD” Run
Runs the Command Prompt in (Windows 10) (As User)Windows + X and then press “C”
Runs the Command Prompt (New in Windows 10) (As Administrator)Windows + X and then press “A”
Allows you to toggle between windowed and fullscreenAlt + Enter
Close the Command PromptAlt + F4
Erase Your Internet Explorer HistoryCTRL + SHIFT + DEL
Multi Functional (Context Dependent)CTRL + ALT + DEL

 

 

You Can Copy And Past The Commands Straight Into Command Prompt (CMD):

 

What The Command(s) Does:Command(s) To Be Typed In To CMD As Administrator:
Displays drives / services using the network.net use
Displays local user accounts on the device.net user (Or) net users
Add a new user account with a password.net user ACCOUNT_NAME_GOES_HERE "PASSWORD_GOES_HERE" /add
Add a new user account without a password.net user ACCOUNT_NAME_GOES_HERE "" /add
Remove user account with or without a password.net user USERNAME_GOES_HEAR /del
Raise use account to admin level.net localgroup administrators owner /add
Remove a device from the domain (Unjoin a device from the domain).netdom remove PC_NAME_GOES_HERE /DOMAIN:DOMAINNAME
Set the max password agenet accounts /MaxPWAge:unlimited
Set the password expire parameter net user ACCOUNT_NAME_GOES_HERE /expires:never
Run the command in CMD or PowerShell to delete mapped network drives.net use * /delete
Run the command in CMD or PowerShell as admin run Device Manager as admin.devmgmt.msc
Displays the internet configuration of your current TCP/IP network configuration values.ipconfig
Displays the internet configuration of all current TCP/IP network configuration values.ipconfig -all
Flushes the Domain Name System (DNS) resolver cache from the internet configuration.
ipconfig /flushdns
Allows you to perform an echo test to an IP address or domain name.ping IP_ADDRESS_OR_DOMAIN_NAME_GOSE_HERE
Allows you to perform a continuous echo test to an IP address or domain name.ping IP_ADDRESS_OR_DOMAIN_NAME_GOSE_HERE -t
Allows you to trace IP address or domain name via hops across the network back to the source.tracert IP_ADDRESS_OR_DOMAIN_NAME_GOSE_HERE
Show MAC Address.arp -a
Deletes one or more files. If you use erase to delete a file from your disk, you can't retrieve it.erase C:\NAME_OF_FILE_GOES_HERE.TRHEE_LATTER_FILE_EXTENSION
Allows you to change the directory by typing the directory path after the cd.cd
Allows you to change the directory by typing the directory path after the cd on Windows 10.cd /d
Allows you to go straight to the root directory without typing the file path.
cd..
Allows you to make a directory.mkdir
Allows you to remove a directory.rmdir
Clears the screen of the current text.cls
Updates the security policy’s of the local device and any Group Policy Object’s (GPO’s).gpupdate
Force the security policy’s of the local device and any Group Policy Object’s (GPO’s) to update.gpupdate /force
Shows the Resultant Set of Policy (RsoP) information for a
user and computer, by creating a report that displays what
group policies objects are applied to a user and computer.
gpresult /r
To verify that BitLocker is enabled on a drive, run CMD as Administrator and then type.fvenotify.exe
Change Bitlocker PIN for drive C: (The simply way) (As admin).changepin
Change Bitlocker password for drive C: (More involved way) (As admin).manage-bde -changepassword C:
Displays the current time and allows you to change the current system time.time
Displays the current date and allows you to change the current system data.
date
Run the command in CMD or PowerShell as admin scans the integrity of all
protected system files and repairs files with problems when possible.
sfc /SCANNOW
Run the command in CMD or PowerShell as admin Scans integrity of all
protected system files. No repair operation is performed.
sfc /VERIFYFILE
Run the command in CMD or PowerShell as admin Scans integrity of the
referenced file, repairs file if problems are identified. Specify full path
sfc /SCANFILE
Run the command in CMD or PowerShell as admin Verifies the integrity of the file with full path.
No repair operation is performed.
sfc /VERIFYONLY
Run the command in CMD or PowerShell as admin For offline repair, specify the location of
the offline boot directory.
/OFFBOOTDIR
Run the command in CMD or PowerShell as admin For offline repair, specify the location of
the offline windows directory.
/OFFWINDIR
Run the command in CMD or PowerShell as admin For offline repair, optionally enable logging
by specifying a log file path.
/OFFLOGFILE
Will write a Windows Vista and Windows 7 compatible MBR to the system partition.bootrec /FixMbr
Will write a new boot sector to the system partition. If your system is Windows 7, FixBoot will
write a Windows 7-compatible boot sector and so on.
bootrec /FixBoot
Will scan the hard drives for any installations. ScanOs will also print installations that are not
currently in the BCD.
bootrec /ScanOs
Will scan for installations on your hard drive and allows you to select which to add to the BCD.bootrec /RebuildBcd
Remote Access Client Side Command Line Dial UI, creates new records and folders in the
Windows registry.
rasdial.exe "ACME Device AlwaysOn VPM / DISCONNECT"
Connect to a VPN in Windows 10 using rasdial, To specify your user name and password
credentials, execute the following command.
rasdial "VPN_NAME_GOES_HERE" "YOUR_USERNAME" "YOUR_PASSWORD"

Powered by WordPress. Designed by WooThemes

Verified by MonsterInsights