Command Prompt Windows 10 cmd Commands List

Command Prompt Windows 10 List

In this article you will learn about Command Prompt Windows 10 cmd commands list, we have compiled for your convenience. These cmd commands list may help you in many ways. The Windows command prompt has been an integral part of the Windows operating system for a long time. Some CMD commands are so helpful and simple to use that even novice users regard the Windows command prompt as an essential operating system component.

It’s always rumored that it’ll be phased out at some point, but that’s unlikely to happen anytime soon.

Command Prompt Windows 10 List (cmd)

The following are the most useful CMD commands to know if you want more control over your Windows PC. Also check How to Fix a Stuck Windows 10 Update

 

1. ASSOC: Fix File Associations

The ASSOC command is one of the most powerful tools in the CMD command library.

Certain file extensions are associated with specific programs on your computer. For example, when you double-click a PDF file, your computer knows to open Adobe Reader, and when you double-click a DOC file, it knows to open Microsoft Word. Also Read How to Uninstall Microsoft Store Apps

 

Fix File Associations cmd

Type ASSOC in the command window; you can view all of the file associations your computer is aware of. You’ll find the file extension and the program with which it’s associated. You can change the association by typing assoc .doc=Word.Document.8.

 

2. FC: File Compare

When files are changed over time, it can be challenging to remember the differences between versions. You might not realize that a CMD command allows you to compare files and see all differences, but it’s true.

File Compare cmd

The FC command compares two files, either ascii or binary, and outputs a list of any differences found.

The command Fc /a File1.txt File2.txt compares two ascii files.

Fc /b Picture1.jpg Picture2.jpg will compare a binary comparison on two images.

 

3. IPCONFIG: IP Configuration

Network troubleshooting is never easy, but IPCONFIG is a command that makes it much more manageable.

IP Configuration cmd

This command, when entered into the CMD command prompt, returns detailed info about your current network adapter connection, including:

• Current Internet Protocol Address

• The Subnet Mask

• Default Gateway IP Address

• The current domain

This information can assist you in troubleshooting router issues and other network adapter connection issues.

 

4. NETSTAT: Network Statistics

Network Statistics cmd

I am concerned that you may have malware running on your computer connecting to the internet without your knowledge?

You can get a list of active TCP connections from your computer by running the NETSTAT command in the command prompt.

 

5. PING: Send Test Packets

The PING command is an IT Analyst’s best friend. This command sends test packets to the target system over the network.

PING test cmd

PING command is used to check if your computer can connect to another computer, a server, or even a website. It can aid in the detection of network disconnections. It also provides packet transit time in milliseconds, revealing a bad network connection.

 

6. TRACERT: Trace Route

TRACERT is an enthralling Windows Command to work with. If you’ve ever wondered what path your internet traffic takes from your browser to a remote system, such as Google servers, you can use TRACERT to find out.

Trace Route cmd

The command stands for “Trace Route,” and it sends packets to a remote destination (server or website) and returns the following information:

• The number of hops (intermediate servers) required to reach the destination.

• The time it takes to travel to each hop

• The IP address and, in some cases, the name of each hop

 

TRACERT can show you how the paths of your internet requests change depending on where you access the internet.

It also aids in troubleshooting a problematic router or switch on a local network. Also check How to create a Bootable Pendrive by CMD

 

7. POWERCFG: Power Configuration

Are you frustrated by how quickly your laptop appears to run power? Your power settings may be set to be as efficient as possible. A Windows CMD command called POWERCFG (power configuration) can be helpful. To obtain a complete power efficiency report, run the command prompt as an administrator and type powercfg – energy.

Power Configuration Command Prompt Windows 10

The process can take up to a minute, but when it’s finished, you’ll see if there are any warnings or errors that may help you improve your system’s power efficiency. View the energy-report.html file for more information on the errors and warnings.

 

8. SHUTDOWN: Turn Off Computer

The SHUTDOWN command is a reasonably versatile command that allows you to shut down the computer while controlling its behavior. For example, after patches have been applied to a computer system, it is commonly used as a scheduled task or as part of an IT batch job.

Turn Off Computer Command Prompt Windows 10

Typing shutdown /i from the command prompt will restart a shutdown, but it will rely on a GUI to give the user the option of resuming or performing a complete shutdown. If you don’t want the GUI to appear, use the shutdown /s command in command prompt Windows 10.

You can use a long list of other parameters to log off, hibernate, restart, and more. To see them all, type shutdown without any arguments.

 

9. SYSTEMINFO: System Information

The SYSTEMINFO command can tell you what brand of network card you have, as well as processor details and the exact version of your Windows operating system.

System Information cmd

This command polls your system and retrieves the most critical system information. It presents the data in a clear and easy-to-read format.

 

10. SFC: System File Checker

If you suspect that a virus or other software has corrupted your core system files, there is a Windows command that can scan those files and provide their integrity in Command Prompt Windows 10.

System File Checker

It will help if you run CMD as administrator (right-click and choose Run as Administrator). SFC /SCANNOW verifies the integrity of all protected system files. If a problem is discovered, the files will be repaired using backed-up system files previously.

The SFC command also lets you to:

• /VERIFYONLY: check the integrity of the files but do not repair them.

• /SCANFILE: scan the integrity of typical files and fix if they are corrupted.

• /VERIFYFILE: Check the integrity of specific files without repairing them.

• /OFFBOOTDIR: This command is used to repair an offline boot directory.

• /OFFWINDIR: This command is used to repair an offline Windows directory.

• /OFFLOGFILE: Select a path to save a log file containing scan results.

 

Give enough time for the scan, which can last up to 10 or 15 minutes.

 

11. NET USE: Map drives

If you need to map a new drive, open File Explorer, right-click This PC and select the Map Network Drive wizard. However, you can accomplish the same thing with a single command string using the NET USE command in command prompt Windows 10.

Example, if you have a shared folder called OTHER-COMPUTERSHARE on a computer on your network, you can map it as your Z: drive by typing the command:

Net use Z: “\\OTHER-COMPUTER\SHARE” /persistent:yes

The persistent switch instructs your computer that you want this drive remapped every time you log in.

 

12. CHKDSK: Check Disk

While the SFC command checks the integrity of core system files only, the CHKDSK command can scan an entire drive.

To check the C: and repair any issues, open a command window as an administrator and type CHKDSK /f C:

This command looks for the following things:

• Data fragmentation

• Errors on disc

• Negative industries

 

The command can fix any disc errors (if possible). When the command is completed, you’ll see the scan’s status and the actions taken.

 

13. SCHTASKS: Schedule Tasks

For creating scheduled tasks, Windows includes a wizard. For instance, suppose you have a BAT file on C:temp that you need to run every day at noon.

To configure this, you’d need to go through the Scheduled Task wizard. You can also set it up with a single SCHTASKS command.

SCHTASKS /Create /SC HOURLY /MO 12 /TR Example /TN c:\temp\File1.bat

Scheduled task switch accepts minute, hourly, daily, and monthly arguments. The frequency is then specified using the /MO command.

If you typed the command correctly, you should receive the response SUCCESS: The scheduled task “Example” has successfully been created.

 

14. ATTRIB: Change File Attributes

In Windows, you can modify file attributes by right-clicking on it and selecting the appropriate property to change. Instead of searching for the file attribute, use the ATTRIB command to set the file attributes in command prompt Windows 10.

For example, typing ATTRIB +R +H C:\temp\File1.bat will set File1.bat a hidden, read-only file. There is no response when it is successful, so unless you see an error message, the command was successful.

 

Other Windows CMD Commands

As you can see, if you know the proper commands, you can do some exciting and valuable things with the Windows command prompt.

Believe it or not, there are even many commands that will give you the ability to do things you probably never realized you could do just by typing a simple command.

• BITSADMIN: Begin upload or download jobs over a network or the internet, and monitor the status of those file transfers.

• COLOR: To Change the color of the command prompt window’s background.

• COMP: Compare the contents of the two files to see any differences.

• FIND/FINDSTR: Find strings within ASCII files.

• PROMPT: change the command prompt with something other than C:>.

• TITLE: change the command prompt window’s title.

• REGEDIT: Modify registry keys in Windows (use with caution).

• ROBOCOPY: A powerful file copy utility that comes standard with Windows.

 

Command Prompt Windows 10 Commands cmd.exe

cmd command Description
Basics:
call To calls a batch file from another one
cd To change directory
cls To clear screen
cmd To start command prompt
color To change console color
date To show/set date
dir To list directory content
echo To text output
exit To exits the command prompt or a batch file
find To find files
hostname To display host name
pause To pauses the execution of a batch file and shows a message
runas To start a program as another user
shutdown To shutdown the computer
sort To sort the screen output
start To start an own window to execute a program or command
taskkill To terminate a process or a application
tasklist To display applications and related tasks
time To display/edit the system time
timeout To wait any time
title To set title for prompt
ver To display operating system version
w32tm To setting time synchronisation/time server/time zone
Network:
ftp To transfer files to a FTP server
ftype To display file type and mapping
getmac To display MAC address
ipconfig To display IP network settings
netsh To configure/control/display network components
netstat To display TCP/IP connections and status
nslookup To query the DNS
pathping To test the connection to a specific IP address
ping To pings the network
route To display network routing table, add static routes
systeminfo To displays computer-specific properties and configurations
telnet To establish Telnet connection
tftp To transfer files to a TFTP server
tracert To trace routes similar to patchping
Files:
attrib To display file attributes
comp To compare file contents
compact To display/change file compression
copy / xcopy To copy files
diskcomp To compare content of two floppy disks
diskcopy To copy floppy disc to another one
erase / del To delete one or more files
expand To extract files
fc To copare files and display the differences
mkdir To create a new directory
move To move/rename files
rename To rename files
replace To replace files
rmdir / rd To delete directory
tree To display folder structure graphically
type To display content of text files
Media:
chkdsk To check volumes
chkntfs To display/change volume check at startup
defrag To defragment media
diskpart To volume management
driverquery To display installed devices and their properties
format To format volumes
label To change volume name
mode To configure interfaces/devices
mountvol To assign/delete drive mountpoints
verify To monitoring whether volumes are written correctly
vol To show volume description and serial numbers of the HDDs
Miscellaneous:
for To for loop
gpresult To display group policies
gpupdate To update group policies
perfmon To start performance monitor
prompt To change command prompt
reg To add/read/import/export registry entries

 

If you want to learn more, Microsoft provides a complete list of all of the Windows CMD commands included in the most recent Windows operating system version.

You May Also Like

4 Comments to “Command Prompt Windows 10 cmd Commands List”

Leave a Reply

Your email address will not be published.