0 ratings 0% found this document useful (0 votes) 62 views 22 pages Windows Command
The document provides an overview of Windows Commands applicable to various Windows Server and Windows operating systems, detailing their use for automating tasks through command-line shells like Command shell and PowerShell. It emphasizes the advantages of using PowerShell for more advanced scripting capabilities compared to traditional Windows Commands. Additionally, it includes information on configuring command-line features and a reference to various commands available within the Windows environment.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, 
claim it here .
Available Formats
Download as PDF or read online on Scribd
Go to previous items Go to next items 
Save Windows Command For Later 2410512026, 13:11 Windows commands | Microsoft Learn
Windows Commands
Article + 05/16/2025 +
Applies to: MJ Windows Server 2025, J Windows Server 2022, [J Windows Server 2019, MJ Windows
Server 2016, J Windows 11, J Windows 10, MM Azure Local 2311.2 and later
 
All supported versions of Windows and Windows Server 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.
Command-line shells
Windows has two command-line 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.
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.
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 both 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.
A reference of exit and error codes for Windows Commands can be found in the Debug system
error codes articles that may be helpful to understanding errors produced. Windows
Commands also include command redirection operators. To learn more of their use, see Using
command redirection operators.
 
© Note
You can also download and install PowerShell Core, the open source version of
PowerShell.
 
tps learn microsoft.com/en-us/windows-serverladminstrationwindows-commands!windows-commands tne.sans, 191 Windows commands |Meroso Lean
Command shell file and directory name automatic
completion
You can configure the Command shell to automatically complete file and directory names on a
computer or user session when a specified control character is pressed. By default this control
character is configured to be the tab key for both file and directory names, although they can
be different. To change this control character, run regedit.exe and navigate to either of the
following registry keys and entries, depending on whether you wish to change the value for
the current user only, or for all users of the computer.
 
@ cau
 
n
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.
 
registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor\CompletionChar
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor\PathConpletionchar
Set these values to that of the control character you wish to use. See virtual key codes for a
complete list. To disable a particular completion character in the registry, use the value for
space (0x20) as it isn’t a valid control character. The type of value for this registry entry is
REG_DWORD, and can also be specified by hexadecimal or decimal value.
You can also enable or disable file and directory name completion per instance of a Command
shell by running cmd.exe with the parameter and switch /F:0N or /F:0FF.. If name completion
is enabled with the /F:0N parameter and switch, the two control characters used are Ctrl-p
for directory name completion and ctri-F for file name completion. 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 command, in the following A-Z menu, select the letter that
the command starts with, and then select the command name.
A[BICIDJEJFIGIH|I[JIKILIMIN[O[PJQ|RIS|T/U[V|WIX]¥|Z
A
tps learn microsoft.com/en-us/windows-serverladminstrationwindows-commands!windows-commands 222410512026, 13:11 Windows commands | Microsoft Learn
active
add
add alias
add volume
adprep
append
arp
assign
assoc
at
atmadm
attach-vdisk
attrib
attributes
© attributes disk
© attributes volume
auditpol
auditpol backup
auditpol clear
auditpol get
auditpol list
auditpol remove
auditpol resourcesacl
auditpol restore
auditpol set
autochk
00000000
autoconv
autofmt
automount
bedboot
bededit
bdehdefg
bdehdefg driveinfo
bdehdefg newdriveletter
°
bdehdefg quiet
bdehdcfg restart
bdehdetg size
00 0 0
‘nips: ear. microsof. conven-ustwindows-serverladministrationwindows-commandslwindows-commands.
32224)os2025, 1911 Windows commands | Microsoft Lean
© bdehdefg target
* begin backup
* begin restore
© bitsadmin
© bitsadmin addfile
© bitsadmin addfileset
© bitsadmin addfilewithranges
© bitsadmin cache
© bitsadmin cache and delete
© bitsadmin cache and deleteurl
© bitsadmin cache and getexpirationtime
© bitsadmin cache and getlimit
© bitsadmin cache and help
© bitsadmin cache and info
© bitsadmin cache and list
© bitsadmin cache and setexpirationtime
© bitsadmin cache and setlimit
© bitsadmin cache and clear
bitsadmin cancel
bitsadmin complete
bitsadmin create
bitsadmin examples
bitsadmin getaclflags
bitsadmin getbytestotal
bitsadmin getbytestransferred
bitsadmin getclientcertificate
bitsadmin getcompletiontime
bitsadmin getcreationtime
bitsadmin getcustomheaders
bitsadmin getdescription
bitsadmin getdisplayname
bitsadmin geterror
bitsadmin geterrorcount
bitsadmin getfilestotal
bitsadmin getfilestransferred
bitsadmin gethelpertokenflags
bitsadmin gethelpertokensid
bitsadmin gethttpmethod
bitsadmin getmaxdownloadtime
00 00000000000000000000
bitsadmin getminretrydelay
‘nips: ear. microsof. conven-ustwindows-serverladministrationwindows-commandslwindows-commands. ana2410512026, 13:11
Windows commands | Microsoft Learn
© bitsadmin getmodificationtime
0 0000000000000000000000000
0 0 0 0 0
bitsadmin getnoprogresstimeout
bitsadmin getnotifyemdline
bitsadmin getnotifyflags
bitsadmin getnotifyinterface
bitsadmin getowner
bitsadmin getpeercachingflags
bitsadmin getpriority
bitsadmin getproxybypasslist
bitsadmin getproxylist
bitsadmin getproxyusage
bitsadmin getreplydata
bitsadmin getreplyfilename
bitsadmin getreplyprogress
bitsadmin getsecurityflags
bitsadmin getstate
bitsadmin gettemporaryname
bitsadmin gettype
bitsadmin getvalidationstate
bitsadmin help
bitsadmin info
bitsadmin list
bitsadmin listfiles
bitsadmin makecustomheaderswriteonly
bitsadmin monitor
bitsadmin nowrap
bitsadmin peercaching
© bitsadmin peercaching and getconfigurationflags
© bitsadmin peercaching and help
© bitsadmin peercaching and setconfigurationflags
bitsadmin peers
© bitsadmin peers and clear
© bitsadmin peers and discover
© bitsadmin peers and help
© bitsadmin peers and list
bitsadmin rawreturn
bitsadmin removeclientcertificate
bitsadmin removecredentials
bitsadmin replaceremoteprefix.
bitsadmin reset
‘nips: ear. microsof. conven-ustwindows-serverladministrationwindows-commandslwindows-commands.
57222470512026, 1:14 Windows commands | Merosoft Lea
© bitsadmin resume
bitsadmin setaclflag
bitsadmin setclientcertificatebyid
bitsadmin setclientcertificatebyname
bitsadmin setcredentials
bitsadmin setcustomheaders
bitsadmin setdescription
bitsadmin setdisplayname
bitsadmin sethelpertoken
bitsadmin sethelpertokenflags
bitsadmin sethttpmethod
bitsadmin setmaxdownloadtime
bitsadmin setminretrydelay
bitsadmin setnoprogresstimeout
bitsadmin setnotifycmdiine
bitsadmin setnotifyflags
bitsadmin setpeercachingflags
bitsadmin setpriority
bitsadmin setproxysettings
bitsadmin setreplyfilename
bitsadmin setsecurityflags
bitsadmin setvalidationstate
bitsadmin suspend
bitsadmin takeownership
bitsadmin transfer
0 000000000000000000000000
bitsadmin util
bitsadmin util and enableanalyticchannel
bitsadmin util and getieproxy
bitsadmin util and help
bitsadmin util and repairservice
bitsadmin util and setieproxy
bitsadmin util and version
00000 0
© bitsadmin wrap
* bootcfg
bootcig addsw
bootcfg copy
bootcig dbg1394
bootcig debug
bootcig default
0 00000
bootctg delete
‘nips: ear. microsof. conven-ustwindows-serverladministrationwindows-commandslwindows-commands. 67224)os2025, 1911 Windows commands | Merosot Learn
© bootcfg ems
© bootcfg query
© bootefg raw
© bootcfg rmsw
© bootcfg timeout
© break
© cadls
© call
ed
* certreq
© certutil
* change
© change logon
© change port
© change user
© chep
© chdir
* chglogon
© chgport
© chgusr
© chkdsk
© chkntfs
* choice
© cipher
* clean
* cleanmgr
* clip
© ds
* cmd
* cmdkey
© cmstp
* color
© comp
© compact
© compact vdisk
@ convert
© convert basic
nips: team. microsoft conven-usiwindows-serverladministrationtwindows-commandstwvindows-commands. 722470512026, 1:14 Windows commands | Microsoft Lean
© convert dynamic
© convert gpt
© convert mbr
* copy
© create
create partition efi
create partition extended
create partition logical
create partition msr
create partition primary
create volume mirror
create volume raid
create volume simple
000000000
create volume stripe
© cscript
° date
* dediag
© degpofix
* depromo
© defrag
© del
© delete
delete disk
delete partition
delete shadows
°
°
°
°
delete volume
* detach vdisk
© detail
detail disk
detail partition
detail vdisk
detail volume
* disdiag
disdiag testdes
disdiag testdfsconfig
°
°
°
°
°
dfsdiag testdfsintegrity
dfsdiag testreferral
oo 0
‘nips: ear. microsof. conven-ustwindows-serverladministrationwindows-commandslwindows-commands. an224)os2025, 1911 Windows commands | Microsoft Lean
© dfsdiag testsites
© disrmig
© diantz
* dir
* diskcomp
* diskcopy
© diskpart
© diskpert
© diskraid
© diskshadow
© dispdiag
© dnscmd
© doskey
© driverquery
© dtrace
* echo
© edit
© endlocal
© end restore
© erase
© eventcreate
* Evntemd
© exec
© exit
© expand
* expand vdisk
* expose
* extend
© extract
 
nips: team. microsoft conven-usiwindows-serverladministrationtwindows-commandstwvindows-commands. 9n22410512026, 13:11 Windows commands | Microsoft Learn
flattemp
fondue
for
forfiles
format
freedisk
fsutil
fsutil Bdot3name
fsutil behavior
fsutil devdrv
fsutil dirty
fsutil file
fsutil fsinfo
fsutil hardlink
fsutil objectid
fsutil quota
fsutil repair
fsutil reparsepoint
fsutil resource
fsutil sparse
fsutil tiering
fsutil transaction
fsutil usn
fsutil volume
0 00000000000000000
fsutil wim
P
ftp append
z
ftp ascii
ftp bell
ftp binary
ftp bye
ftp cd
ftp close
ftp debug
ftp delete
ftp dir
ftp disconnect
ftp get
ftp glob
ftp hash
0 0000000000000
‘nips: ear. microsof. conven-ustwindows-serverladministrationwindows-commandslwindows-commands.
107222410512026, 13:11 Windows commands | Microsoft Learn
H
© ftp led
ftp literal
ftp Is
ftp mget
ftp mkdir
ftp mis
ftp mput
ftp open
ftp prompt
ftp put
ftp pwd
ftp quit
ftp quote
ftp recv
ftp remotehelp
ftp rename
ftp rmdir
ftp send
ftp status
ftp trace
ftp type
ftp user
ftp verbose
ftp mdelete
ftp mdir
ftype
fveupdate
0 00000000000000000000000
getmac
gettype
goto
gpfixup
gpresult
gpt
gpupdate
graftabl
nips: team. microsoft conven-usiwindows-serverladministrationtwindows-commandstwvindows-commands.
sna2410512026, 13:11 Windows commands | Microsoft Learn
help
helpetr
hostname
icacls
if
import (shadowdisk)
import (diskpart)
inactive
ipconfig
ipxroute
irftp
jetpack
klist
ksetup
ksetup addenctypeattr
ksetup addhosttorealmmap
ksetup addkde
ksetup addkpasswd
ksetup addrealmflags
ksetup changepassword
ksetup delenctypeattr
ksetup delhosttorealmmap
ksetup delkde
ksetup delkpasswd
ksetup delrealmflags
ksetup domain
ksetup dumpstate
ksetup getenctypeattr
ksetup listrealmflags
ksetup mapuser
ksetup removerealm
0 0000000000000000
‘nips: ear. microsof. conven-ustwindows-serverladministrationwindows-commandslwindows-commands.
sana24)os2025, 1911 Windows commands | Microsoft Lean
© ksetup server
© ksetup setcomputerpassword
© ksetup setenctypeattr
© ksetup setrealm
© ksetup setrealmflags
© ktmutil
© ktpass
© label
© list
© list providers
© list shadows
© list writers
* load metadata
* lodetr
* logman
‘© logman create
‘© logman create alert
logman create api
logman create cfg
logman create counter
logman create trace
logman delete
logman query
logman start and logman stop
logman update
logman update alert
logman update api
°
°
°
°
°
© logman import and logman export
°
°
°
°
°
© logman update cfg
°
logman update counter
© logman update trace
* logoff
* Ipq
© Ipr
M
‘nips: ear. microsof. conven-ustwindows-serverladministrationwindows-commandslwindows-commands. 13222410512026, 13:11 Windows commands | Microsoft Learn
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
0 00000000000000000
manage bde wipefreespace
mapadmin
md
merge vdisk
mkdir
milink
mme
mode
more
mount
mountvol
move
mabkup
mgsve
matgsve
msdt
msg
msiexec
msinfo32
mstsc
‘nips: ear. microsof. conven-ustwindows-serverladministrationwindows-commandslwindows-commands.
sana2410512026, 13:11
N
nbtstat
netcfg
netdom
net print
net user
netcfg
netsh
netstat
nfsadmin
nfsshare
nfsstat
nibmgr
nitest
nslookup
nslookup exit Command
nslookup finger Command
nslookup help
nslookup Is
nslookup Iserver
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 ve
00 000000000000000 0700000
© nslookup view
* ntbackup
‘nips: ear. microsof. conven-ustwindows-serverladministrationwindows-commandslwindows-commands.
Windows commands | Microsoft Learn
157222410512026, 13:11 Windows commands | Microsoft Learn
ntcmdprompt
ntfrsutl
offline
© offline disk
© offline volume
online
© online disk
© online volume
openfiles
pagefileconfig
path
pathping
pause
pbadmin
pentnt
perfmon
ping
pktmon
pnpunattend
pnputil
popd
powershell
powershell ise
print
prenfg
pmndrvr
prnjobs
pmmngr
prnport
prnqctl
prompt
pubprn
pushd
pushprinterconnections
nips: team. microsoft conven-usiwindows-serverladministrationtwindows-commandstwvindows-commands.
162224)os2025, 1911
* pwlauncher
© pwsh
Windows commands | Microsoft Learn
Q
gappsrv
process
query
© query process
© query session
© query termserver
© query user
quser
qwinsta
rd
rdpsign
recover
recover disk group
refsutil
refsutil compression
refsutil dedup
refsutil fixboot
refsutil iometrics
refsutil leak
refsutil salvage
refsutil streamsnapshot
refsutil triage
00000000
reg
reg add
reg compare
reg copy
reg delete
reg export
reg import
reg load
reg query
reg restore
 
000000000
‘nips: ear. microsof. conven-ustwindows-serverladministrationwindows-commandslwindows-commands.
sna24)os2025, 1911 Windows commands | Microsoft Lean
© reg save
© reg unload
© regini
# regsvr32
* relog
* rem
* remove
© ren
© rename
© repadmin
© repair
© repair bde
© replace
* rescan
reset
© reset session
© retain
© revert
# rexec
© risetup
© rmdir
* robocopy
© route ws2008
* rpcinfo
* rpcping
eorsh
© rundil32
© rundll32 printui
@ rwinsta
* san
* sc config
* sc create
* sc delete
* sc query
© schtasks
© scwemd
© scwemd analyze
nips: team. microsoft conven-usiwindows-serverladministrationtwindows-commandstwvindows-commands. 182224)os2025, 1911 Windows commands | Microsoft Lean
© scwemd configure
scwcmd register
sewemd rollback
sewemd transform
0 0 0 0
sewcmd view
* secedit
© secedit analyze
© secedit configure
© secedit export
© secedit generaterollback
© secedit import
© secedit validate
© select
°
select disk
°
select partition
°
select vdisk
© select volume
© serverceipoptin
© servermanagercmd
© serverweroptin
* set environmental variables
* set shadow copy
set context
setid
setlocal
set metadata
set option
000000
set verbose
* setlocal
© setspn
© setx
© sfc
* shadow
© shift
© showmount
© shrink
© shutdown
© simulate restore
* sort
© start
1. microsoft comven-usiwindows-serverladminstrationtwindows-commandsiwindows-commands, 19722410512026, 13:11 Windows commands | Microsoft Learn
subcommand set device
subcommand set drivergroup
subcommand set drivergroupfilter
subcommand set driverpackage
subcommand set image
subcommand set imagegroup
subcommand set server
subcommand set transportserver
subcommand set multicasttransmission
subcommand start namespace
subcommand start server
subcommand start transportserver
subcommand stop server
subcommand stop transportserver
subst
sxstrace
sysocmgr
systeminfo
takeown,
tapicfg
taskkill
tasklist
temsetup
telnet
© telnet close
© telnet display
© telnet open
© telnet quit
© telnet send
© telnet set
© telnet status
© telnet unset
tftp
time
timeout
title
tintadmn
‘nips: ear. microsof. conven-ustwindows-serverladministrationwindows-commandslwindows-commands.
201222470512026, 1:14 Windows commands | Merosoft Lea
* tpmtool
© tpmvsemgr
© tracerpt
© tracert
* tree
* tscon
* tsdiscon
* tsecimp
© tskill
* tsprof
* type
© typeperf
© tzutil
* unexpose
© uniqueid
© unlodetr
* ver
© verifier
© verify
* vol
© vssadmin
© vssadmin delete shadows
© vssadmin list shadows
© vssadmin list writers
© vssadmin resize shadowstorage
* waitfor
© whadmin
© wbadmin delete catalog
wbadmin delete systemstatebackup
°
°
wbadmin disable backup
wbadmin enable backup
°
‘nips: ear. microsof. conven-ustwindows-serverladministrationwindows-commandslwindows-commands. aime24)os2025, 1911 Windows commands | Microsoft Lean
© wbadmin get disks
wbadmin get items
wbadmin get status
wbadmin get versions
wbadmin restore catalog
wbadmin start backup
wbadmin start recovery
wbadmin start sysrecovery
wbadmin start systemstatebackup
wbadmin start systemstaterecovery
0000000000
wbadmin stop job
© wdsutil
© weeutill
© wevtutil
© where
© whoami
e winnt
© winnt32
© winrs
© winsat mem
© winsat mfmedia
© wmic
© writer
© wscript
© xcopy
‘nips: ear. microsof. conven-ustwindows-serverladministrationwindows-commandslwindows-commands. zane