Windows commands
All supported versions of Windows (server and client) have a set of Win32 console commands built in.
This set of documentation describes the Windows Commands you can use to automate tasks by using scripts or scripting tools.
To find information about a specific command, in the following A-Z menu, click the letter that the command starts with, and then click the command name.
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Prerequisites
The information that is contained in this topic applies to:
- Windows Server 2019
- Windows Server (Semi-Annual Channel)
- Windows Server 2016
- Windows Server 2012 R2
- Windows Server 2012
- Windows Server 2008 R2
- Windows Server 2008
- Windows 10
- Windows 8.1
Command shell overview
The Command shell was the first shell built into Windows to automate routine tasks, like user account management or nightly backups, with batch (.bat) files. With Windows Script Host you could run more sophisticated scripts in the Command shell. For more information, see cscript or wscript. You can perform operations more efficiently by using scripts than you can by using the user interface. Scripts accept all Commands that are available at the command line.
Windows has two command shells: The Command shell and PowerShell. Each shell is a software program that provides direct communication between you and the operating system or application, providing an environment to automate IT operations.
PowerShell was designed to extend the capabilities of the Command shell to run PowerShell commands called cmdlets. Cmdlets are similar to Windows Commands but provide a more extensible scripting language. You can run Windows Commands and PowerShell cmdlets in Powershell, but the Command shell can only run Windows Commands and not PowerShell cmdlets.
For the most robust, up-to-date Windows automation, we recommend using PowerShell instead of Windows Commands or Windows Script Host for Windows automation.
Note
You can also download and install PowerShell Core, the open source version of PowerShell.
Caution
Incorrectly editing the registry may severely damage your system. Before making the following changes to the registry, you should back up any valued data on the computer.
Note
To enable or disable file and directory name completion in the Command shell on a computer or user logon session, run regedit.exe and set the following reg_DWOrd value:
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\completionChar\reg_DWOrd
To set the reg_DWOrd value, use the hexadecimal value of a control character for a particular function (for example, 0 9 is Tab and 0 08 is Backspace). User-specified settings take precedence over computer settings, and command-line options take precedence over registry settings.
Command-line reference A-Z
To find information about a specific Windows Command, in the following A-Z menu, click the letter that the Command starts with, and then click the Command name.
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z)
A
B
- bcdboot
- bcdedit
- bdehdcfg
- bitsadmin
- bitsadmin addfile
- bitsadmin addfileset
- bitsadmin addfilewithranges
- bitsadmin cancel
- bitsadmin complete
- bitsadmin create
- bitsadmin getaclflags
- bitsadmin getbytestotal
- bitsadmin getbytestransferred
- bitsadmin getcompletiontime
- bitsadmin getcreationtime
- bitsadmin getdescription
- bitsadmin getdisplayname
- bitsadmin geterror
- bitsadmin geterrorcount
- bitsadmin getfilestotal
- bitsadmin getfilestransferred
- bitsadmin getminretrydelay
- bitsadmin getmodificationtime
- bitsadmin getnoprogresstimeout
- bitsadmin getnotifycmdline
- bitsadmin getnotifyflags
- bitsadmin getnotifyinterface
- bitsadmin getowner
- bitsadmin get priority
- bitsadmin getproxybypasslist
- bitsadmin getproxylist
- bitsadmin getproxyusage
- bitsadmin getreplydata
- bitsadmin getreplyfilename
- bitsadmin getreplyprogress
- bitsadmin getstate
- bitsadmin gettype
- bitsadmin help
- bitsadmin info
- bitsadmin list
- bitsadmin listfiles
- bitsadmin monitor
- bitsadmin nowrap
- bitsadmin rawreturn
- bitsadmin removecredentials
- bitsadmin replaceremoteprefix
- bitsadmin reset
- bitsadmin resume
- bitsadmin setaclflag
- bitsadmin setcredentials
- bitsadmin setdescription
- bitsadmin setdisplayname
- bitsadmin setminretrydelay
- bitsadmin setnoprogresstimeout
- bitsadmin setnotifycmdline
- bitsadmin setnotifyflags
- bitsadmin setpriority
- bitsadmin setproxysettings
- bitsadmin setreplyfilename
- bitsadmin suspend
- bitsadmin takeownership
- bitsadmin Transfer
- bitsadmin util
- bitsadmin wrap
- bootcfg
- break
C
- cacls
- call
- cd
- certreq
- certutil
- change
- chcp
- chdir
- chglogon
- chgport
- chgusr
- chkdsk
- chkntfs
- choice
- cipher
- cleanmgr
- clip
- cls
- Cmd
- cmdkey
- cmstp
- color
- comp
- compact
- convert
- copy
- cprofile
- cscript
D
- date
- dcgpofix
- defrag
- del
- dfsrmig
- diantz
- dir
- diskcomp
- diskcopy
- diskpart
- diskperf
- diskraid
- diskshadow
- dispdiag
- dnscmd
- doskey
- driverquery
E
F
G
H
I
J
K
- klist
- ksetup
- ksetup:setrealm
- ksetup:mapuser
- ksetup:addkdc
- ksetup:delkdc
- ksetup:addkpasswd
- ksetup:delkpasswd
- ksetup:server
- ksetup:setcomputerpassword
- ksetup:removerealm
- ksetup:domain
- ksetup:changepassword
- ksetup:listrealmflags
- ksetup:setrealmflags
- ksetup:addrealmflags
- ksetup:delrealmflags
- ksetup:dumpstate
- ksetup:addhosttorealmmap
- ksetup:delhosttorealmmap
- ksetup:setenctypeattr
- ksetup:getenctypeattr
- ksetup:addenctypeattr
- ksetup:delenctypeattr
- ktmutil
- ktpass
L
M
- macfile
- makecab
- manage-bde
- manage-bde: status
- manage-bde: on
- manage-bde: off
- manage-bde: pause
- manage-bde: resume
- manage-bde: lock
- manage-bde: unlock
- manage-bde: autounlock
- manage-bde: protectors
- manage-bde: tpm
- manage-bde: setidentifier
- manage-bde: ForceRecovery
- manage-bde: changepassword
- manage-bde: changepin
- manage-bde: changekey
- manage-bde: KeyPackage
- manage-bde: upgrade
- manage-bde: WipeFreeSpace
- mapadmin
- Md
- mkdir
- mklink
- mmc
- mode
- more
- mount
- mountvol
- move
- mqbkup
- mqsvc
- mqtgsvc
- msdt
- msg
- msiexec
- msinfo32
- mstsc
N
- nbtstat
- netcfg
- netsh
- netstat
- Net print
- nfsadmin
- nfsshare
- nfsstat
- nlbmgr
- nslookup
- nslookup exit command
- nslookup finger command
- nslookup help
- nslookup ls
- nslookup lserver
- nslookup root
- nslookup server
- nslookup set
- nslookup set all
- nslookup set class
- nslookup set d2
- nslookup set debug
- nslookup set domain
- nslookup set port
- nslookup set querytype
- nslookup set recurse
- nslookup set retry
- nslookup set root
- nslookup set search
- nslookup set srchlist
- nslookup set timeout
- nslookup set type
- nslookup set vc
- nslookup view
- ntbackup
- ntcmdprompt
- ntfrsutl
O
P
- pagefileconfig
- path
- pathping
- pause
- pbadmin
- pentnt
- perfmon
- ping
- pnpunattend
- pnputil
- popd
- PowerShell
- PowerShell_ise
- prncnfg
- prndrvr
- prnjobs
- prnmngr
- prnport
- prnqctl
- prompt
- pubprn
- pushd
- pushprinterconnections
Q
R
- rcp
- rd
- rdpsign
- recover
- reg
- regini
- regsvr32
- relog
- rem
- ren
- rename
- repair-bde
- replace
- reset session
- rexec
- risetup
- rmdir
- robocopy
- route_ws2008
- rpcinfo
- rpcping
- rsh
- rundll32
- rwinsta
S
- schtasks
- scwcmd
- secedit
- serverceipoptin
- Servermanagercmd
- serverweroptin
- set
- setlocal
- setx
- sfc
- shadow
- shift
- showmount
- shutdown
- sort
- start
- subst
- sxstrace
- sysocmgr
- systeminfo
T
- takeown
- tapicfg
- taskkill
- tasklist
- tcmsetup
- telnet
- tftp
- time
- timeout
- title
- tlntadmn
- tpmvscmgr
- tracerpt
- tracert
- tree
- tscon
- tsdiscon
- tsecimp
- tskill
- tsprof
- type
- typeperf
- tzutil
U
V
W
- waitfor
- wbadmin
- wbadmin enable backup
- wbadmin disable backup
- wbadmin start backup
- wbadmin stop job
- wbadmin get versions
- wbadmin get items
- wbadmin start recovery
- wbadmin get status
- wbadmin get disks
- wbadmin start systemstaterecovery
- wbadmin start systemstatebackup
- wbadmin delete systemstatebackup
- wbadmin start sysrecovery
- wbadmin restore catalog
- wbadmin delete catalog
- wdsutil
- wecutil
- wevtutil
- where
- whoami
- winnt
- winnt32
- winpop
- winrs
- wlbs
- wmic
- wscript
X
Feedback
Loading feedback...




