Windows Commands Reference

Comprehensive documentation for 200+ Windows commands

Back to Simulator

Command Categories

File Management

attribcdchdircopydeldirerasemkdir+14 more

Networking

ipconfigpingnetstattracertnslookupnetshgetmachostname

Process Management

tasklisttaskkillwmicscschtasksatstart

System Information

systeminfoverdatetimehostnamewhoamichkdsksfc+2 more

Disk Management

chkdskdefragdiskpartconvertlabelfsutilsubst

File System

assocattribciphercompactftypefsutil

User Management

net usernet localgroupwhoamirunastakeownicacls

Advanced System Tools

powershellsfcdismbcdeditdiskpartrobocopywmicreg+3 more

Help and Documentation

help

File Management

attrib

Displays or changes file attributes (read-only, archive, system, and hidden).

Example:

attrib +r +h filename.txt

cd

Changes the current directory or displays the current directory path.

Example:

cd C:\Users\Username\Documents

chdir

Changes the current directory or displays the current directory path (same as CD).

Example:

chdir C:\Program Files

copy

Copies one or more files to another location.

Example:

copy source.txt destination.txt

del

Deletes one or more files.

Example:

del filename.txt

dir

Displays a list of files and subdirectories in a directory.

Example:

dir /a /s

erase

Deletes one or more files (same as DEL).

Example:

erase oldfile.txt

mkdir

Creates a directory or subdirectory.

Example:

mkdir new_directory

move

Moves one or more files from one directory to another.

Example:

move file.txt C:\Destination

rename

Renames a file or files.

Example:

rename oldname.txt newname.txt

rmdir

Removes a directory.

Example:

rmdir /s /q directory_name

type

Displays the contents of a text file.

Example:

type readme.txt

robocopy

Robust file copy utility for reliable copying of files and directories.

Example:

robocopy C:\Source D:\Destination /E

xcopy

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

xcopy /?

comp

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

comp /?

compact

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

compact /?

fc

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

fc /?

find

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

find /?

findstr

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

findstr /?

more

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

more /?

echo

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

echo /?

ren

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

ren /?

Networking

ipconfig

Displays all current TCP/IP network configuration values.

Example:

ipconfig /all

ping

Tests a network connection by sending ICMP echo request packets.

Example:

ping www.example.com -t

netstat

Displays active TCP connections, ports, and network statistics.

Example:

netstat -ano

tracert

Traces the route taken by packets to reach a destination.

Example:

tracert www.example.com

nslookup

Queries DNS servers for domain name or IP address mapping information.

Example:

nslookup example.com

netsh

Network shell for configuration and monitoring of Windows networking components.

Example:

netsh wlan show networks

getmac

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

getmac /?

hostname

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

hostname /?

Process Management

tasklist

Displays a list of currently running processes.

Example:

tasklist | findstr chrome

taskkill

Terminates one or more running processes.

Example:

taskkill /IM notepad.exe /F

wmic

Windows Management Instrumentation Command-line for system management.

Example:

wmic os get version

sc

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

sc /?

schtasks

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

schtasks /?

at

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

at /?

start

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

start /?

System Information

systeminfo

Displays detailed configuration information about the computer and operating system.

Example:

systeminfo | findstr /B /C:"OS Name" /C:"OS Version"

ver

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

ver /?

date

Displays or sets the system date.

Example:

date /t

time

Displays or sets the system time.

Example:

time /t

hostname

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

hostname /?

whoami

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

whoami /?

chkdsk

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

chkdsk /?

sfc

System File Checker - scans and verifies the integrity of all protected system files.

Example:

sfc /scannow

dism

Deployment Image Servicing and Management tool for Windows images.

Example:

dism /Online /Cleanup-Image /RestoreHealth

config

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

config /?

Disk Management

chkdsk

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

chkdsk /?

defrag

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

defrag /?

diskpart

Disk partition management tool for managing disks, partitions, and volumes.

Example:

diskpart (then: list disk)

convert

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

convert /?

label

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

label /?

fsutil

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

fsutil /?

subst

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

subst /?

File System

assoc

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

assoc /?

attrib

Displays or changes file attributes (read-only, archive, system, and hidden).

Example:

attrib +r +h filename.txt

cipher

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

cipher /?

compact

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

compact /?

ftype

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

ftype /?

fsutil

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

fsutil /?

User Management

net user

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

net user /?

net localgroup

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

net localgroup /?

whoami

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

whoami /?

runas

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

runas /?

takeown

Takes ownership of a file or directory, allowing administrators to access protected files.

Example:

takeown /f C:\important-file.txt

icacls

Displays or modifies Access Control Lists (ACLs) for files and folders.

Example:

icacls C:\Data /grant User:F

Advanced System Tools

powershell

Starts Windows PowerShell, a powerful scripting environment and command-line shell.

Example:

powershell -NoProfile -ExecutionPolicy Bypass

sfc

System File Checker - scans and verifies the integrity of all protected system files.

Example:

sfc /scannow

dism

Deployment Image Servicing and Management tool for Windows images.

Example:

dism /Online /Cleanup-Image /RestoreHealth

bcdedit

Boot Configuration Data store editor for managing boot options.

Example:

bcdedit /set {default} bootmenupolicy legacy

diskpart

Disk partition management tool for managing disks, partitions, and volumes.

Example:

diskpart (then: list disk)

robocopy

Robust file copy utility for reliable copying of files and directories.

Example:

robocopy C:\Source D:\Destination /E

wmic

Windows Management Instrumentation Command-line for system management.

Example:

wmic os get version

reg

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

reg /?

netsh

Network shell for configuration and monitoring of Windows networking components.

Example:

netsh wlan show networks

takeown

Takes ownership of a file or directory, allowing administrators to access protected files.

Example:

takeown /f C:\important-file.txt

icacls

Displays or modifies Access Control Lists (ACLs) for files and folders.

Example:

icacls C:\Data /grant User:F

Help and Documentation

help

Provides help information for Windows commands.

Example:

help dir