Windows operating systems have a variety of command-line utilities and shell commands that can be used to interact with the system, manage files, and configure network settings, among other things.

Here are some common commands used in the Windows Command Prompt (cmd) or PowerShell:

  1. ipconfig – Displays all current TCP/IP network configuration values.
   ipconfig
  1. ping – Tests the reachability of a network host.
   ping google.com
  1. tracert – Traces the route taken by packets to reach a network host.
   tracert google.com
  1. nslookup – Displays information that you can use to diagnose Domain Name System (DNS) infrastructure.
   nslookup google.com
  1. netstat – Displays active TCP connections, ports on which the computer is listening, Ethernet statistics, and more.
   netstat
  1. route – Manipulates network routing tables.
   route print
  1. getmac – Displays the media access control (MAC) address of your network adapter.
   getmac
  1. tasklist – Displays a list of currently running processes.
   tasklist
  1. taskkill – Terminates tasks by process id or image name.
   taskkill /PID process_id
  1. shutdown – Allows proper local or remote shutdown of a machine. shutdown /r /t 0
  2. dir – Lists files and subdirectories in a directory. dir
  3. cd – Changes the directory. cd \path\to\directory
  4. copy – Copies files from one location to another. copy source destination
  5. del – Deletes one or more files. del filename
  6. mklink – Creates a symbolic link.
    bash mklink Link Target

These commands provide a range of functionalities for interacting with the system, from viewing network configurations, troubleshooting network issues, managing tasks, to manipulating files and directories. Each command has its own set of options and arguments, which you can explore by typing the command followed by /? (e.g., ipconfig /?, ping /?, etc.) in the command prompt or by looking at the official documentation.


In addition to the previous commands, here are some more commands and utilities you might find useful in Windows environments:

  1. systeminfo: Provides detailed configuration information about a computer and its operating system. systeminfo
  2. sfc: Scans and repairs system files. sfc /scannow
  3. chkdsk: Checks a disk and displays a status report. chkdsk C:
  4. diskpart: Provides disk partitioning and management functions. diskpart
  5. powershell: Starts a new instance of PowerShell, a more powerful command-line shell. powershell
  6. regedit: Opens the Registry Editor. regedit
  7. gpupdate: Updates Group Policy settings. gpupdate /force
  8. gpresult: Displays Group Policy settings and Resultant Set of Policy (RSOP) for a user or a computer. gpresult /r
  9. net: Provides a variety of network services such as user, group, share management, and more. net user
  10. netsh: Allows you to, either locally or remotely, display or modify the network configuration of a computer. netsh interface ipv4 show config
  11. nbtstat: Displays protocol statistics and current TCP/IP connections using NBT (NetBIOS over TCP/IP). nbtstat -a hostname
  12. robocopy: An advanced copy utility with features like automatic retry and copy resumption. robocopy source destination /MIR
  13. schtasks: Schedules commands and programs to run periodically or at a specific time.
    bash schtasks /create /tn "TaskName" /tr "TaskRun" /sc daily /st 12:00

These additional commands and utilities cover a range of system administration and troubleshooting tasks. Some of them, such as diskpart, regedit, or netsh, can significantly modify system configurations and should be used with caution, especially in production environments.


  1. xcopy: An extended copy utility used for copying multiple files or entire directory trees from one directory to another. xcopy source destination /E
  2. find: Searches for a text string in a file or files. find "text" filename.txt
  3. findstr: Searches for patterns of text in files using regular expressions. findstr "pattern" filename.txt
  4. sort: Reads input, sorts data, and writes the results to the screen, a file, or another device. sort filename.txt
  5. tree: Graphically displays the directory structure of a drive or path. tree
  6. attrib: Displays, sets, or removes attributes assigned to files or directories. attrib +H filename.txt
  7. fc: Compares two files or sets of files and displays the differences between them. fc file1.txt file2.txt
  8. more or less: Displays output one screen at a time. dir | more
  9. color: Sets the default console foreground and background colors. color 0A
  10. title: Sets the window title for a CMD.EXE session. title My Command Prompt
  11. md or mkdir: Creates a directory. md directoryname
  12. rd or rmdir: Removes a directory. rd directoryname
  13. set: Displays, sets, or removes CMD environment variables. set variable=value
  14. echo: Displays messages or turns command echoing on or off.
    bash echo Hello World

These commands further extend the capabilities of command-line operations on Windows systems, facilitating a wide range of tasks from file management to system configuration. As with the earlier commands, caution should be exercised to ensure that commands are executed correctly, especially when modifying system settings or file attributes.


  1. shutdown: Allows you to shut down or restart a local or remote computer. shutdown /r /t 0
  2. ping: Tests the network connection between your computer and a specified host. ping example.com
  3. ipconfig: Displays all current TCP/IP network configuration values. ipconfig /all
  4. tracert: Traces the route of packets to a network host. tracert example.com
  5. nslookup: Queries DNS servers to find DNS details, including IP addresses of a particular computer. nslookup example.com
  6. tasklist: Displays all currently running tasks including services. tasklist
  7. taskkill: Ends one or more tasks or processes. taskkill /PID process_id
  8. whoami: Outputs the name of the user currently logged in and the name of the domain. whoami
  9. getmac: Displays the media access control (MAC) address of your network card. getmac
  10. driverquery: Provides a list of all installed device drivers and their properties. driverquery
  11. path: Displays or sets a search path for executable files. path
  12. timeout: Pauses the command processor for the specified number of seconds. timeout /t 10
  13. assoc: Displays or modifies file extension associations. assoc .txt
  14. ftype: Displays or modifies file types used in file extension associations.
    bash ftype txtfile

These commands cater to various network and system management tasks, including troubleshooting, diagnostics, and configuration adjustments. They are invaluable tools for administrators and those looking to automate or script tasks within a Windows environment.


  1. bcdedit: Manages boot configuration data (BCD) for Windows. bcdedit /enum
  2. cipher: Displays or alters the encryption of directories and files on NTFS volumes. cipher /E /S:C:\foldername
  3. compact: Displays or changes the compression state of files or directories on NTFS partitions. compact /c /s:C:\foldername
  4. format: Formats a disk for use with Windows. format D: /fs:NTFS
  5. chkdsk: Scans and repairs errors on a disk drive. chkdsk C: /f
  6. sfc: Scans and repairs system files. sfc /scannow
  7. net user: Manages user accounts, including creating, modifying, and deleting user accounts. net user username password /add
  8. net localgroup: Manages local groups on a computer. net localgroup Administrators username /add
  9. net share: Displays or configures shared resources on a computer. net share
  10. net use: Connects or disconnects a computer from shared resources or map network drives. net use Z: \\server\share /user:username password
  11. netstat: Displays active network connections, routing tables, and network statistics. netstat -ano
  12. telnet: Connects to remote computers using the Telnet protocol. telnet example.com 80
  13. regedit: Opens the Windows Registry Editor for viewing and editing the Windows Registry. regedit
  14. gpupdate: Updates Group Policy settings.
    bash gpupdate /force

These commands cover a wide range of system administration and configuration tasks, including disk management, user account management, network resource sharing, and more. Be cautious when using commands that modify system settings or data, as they can have a significant impact on the stability and security of the system.


  1. gpresult: Displays Group Policy settings and Resultant Set of Policy (RSOP) for a user or a computer. gpresult /r
  2. assoc: Displays or modifies file extension associations. assoc .txt
  3. ftype: Displays or modifies file types used in file extension associations. ftype txtfile
  4. hostname: Displays the name of the current host (computer) on the network. hostname
  5. schtasks: Schedules commands and programs to run periodically or at a specific time. schtasks /create /tn "TaskName" /tr "TaskRun" /sc daily /st 12:00
  6. xcopy: An extended copy utility used for copying multiple files or entire directory trees from one directory to another. xcopy source destination /E
  7. expand: Extracts files from compressed .cab cabinet files. expand source.cab -F:* destination
  8. pnputil: Manages the driver package repository on a local or remote computer. pnputil -i -a driver.inf
  9. bcdboot: Sets up the boot files on a system partition to create a new system BCD store. bcdboot C:\Windows /s S:
  10. wevtutil: Manages event logs and publishers. wevtutil qe Application
  11. slmgr: Windows Software Licensing Management Tool – used to activate Windows or change the product key.
    bash slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

These additional Windows commands extend your control over system and network management, including tasks like file copying, event log management, and driver installation. When using these commands, exercise caution, especially when modifying system configurations or scheduling tasks, as they can impact the stability and security of your Windows system.