0% found this document useful (0 votes)
60 views23 pages

Windows Command Manual

Uploaded by

soamisodoi012
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
0% found this document useful (0 votes)
60 views23 pages

Windows Command Manual

Uploaded by

soamisodoi012
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
You are on page 1/ 23
19727129, 5:24 AM ‘Windows commands | Microsoft Learn Windows Commands Article + 04/26/2023 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. O Note ntps:leam microsot.comlon-usiwindows-server/administrationwindows-commandsiwindows-commands 1. 19727129, 5:21 AM ‘Windows commands | Microsoft Learn You can also download and install PowerShell Core, the open source version of PowerShell 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. ® 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, registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Conmand Processor\Completionchar HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Conmand 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 Nor /F:0FF. If Command shell by running cnd.exe with the parameter and switch /F: name completion is enabled with the /F:0n parameter and switch, the two control characters used are ctri-p for directory name completion and ctr1-F for file name completion, User-specified settings take precedence over computer settings, and command-line options take precedence over registry settings. ntps:leam microsot.comlon-usiwindows-server/administrationwindows-commandsiwindows-commands 2123 19727129, 5:24 AM ‘Windows commands | Microsoft Learn 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. AIBICIDIETFIGTH|IJIKILIMIN[O]P]QURIS|TIU[VIWIX]¥ |Z A © active * add © add alias © add volume ‘© append * arp * assign * assoc © at © atmadm © attach-vdisk © attrib © attributes © attributes disk © attributes volume * auditpol © auditpol backup auditpol clear auditpol get auditpol list 0000 auditpol remove © auditpol resourcesac! © auditpol restore © auditpol set * autochk = autoconv © autofmt * automount hitps:leam mierosof. conver-ushuindows-serverladministration|windows-commandsiwindows-commands 3123 11727123, 5:21 AM ‘Windows commands | Microsoft Learn * bedboot * bededit © bdehdetg bdehdefg driveinfo © bdehdcfg newdriveletter © bdehdefg quiet © bdehdefg restart ° ° ° bdehdetg size bdehdefg target * begin backup © begin restore ® bitsadmin © bitsadmin addfile © bitsadmin adafileset © 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 000000000 bitsadmin cache and clear bitsadmin cancel bitsadmin complete bitsadmin create bitsadmin examples 0 0000 bitsadmin getaclflags bitsadmin getbytestotal bitsadmin getbytestransferred bitsadmin getclientcertificate bitsadmin getcompletiontime 0 0000 bitsadmin getcreationtime /ntps:leam microsof. comver-us/windows-serverisdministration\windows-commands/windows-comman's 19727129, 5:24 AM 0 0000000000000000000000000000000000000 Windows commans | Mirosot Lear bitsadmin getcustomheaders bitsadmin getdescription bitsadmin getdisplayname bitsadmin geterror bitsadmin geterrorcount bitsadmin getfilestotal bitsadmin getfilestransferred bitsadmin gethelpertokenflags bitsadmin gethelpertokensid bitsadmin gethttpmethod bitsadmin getmaxdownloadtime bitsadmin getminretrydelay bitsadmin getmodificationtime bitsadmin getnoprogresstimeout bitsadmin getnotifycmdline 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 /ntps:leam microsof. comver-us/windows-serverisdministration\windows-commands/windows-comman's 19727129, 5:24 AM ° 0 0000000000000000000000000000 Windows commans | Mirosot Lear 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 bitsadmin resume bitsadmin setaclflag bitsadmin setclientcertificatebyid bitsadmin setclientcertificatebyname bitsadmin setcredentials bitsadmin setcustomheaders bitsadmin setdes bitsadmin setdisplayname bitsadmin sethelpertoken bitsadmin sethelpertokenflags bitsadmin sethttpmethod bitsadmin setmaxdownloadtime bitsadmin setminretrydelay bitsadmin setnoprogresstimeout bitsadmin setnotifycmdline bitsadmin setnotifyflags bitsadmin setpeercachingflags bitsadmin setpriority bitsadmin setproxysettings bitsadmin setreplyfilename bitsadmin setsecurityflags bitsadmin setvalidationstate bitsadmin suspend bitsadmin takeownership /ntps:leam microsof. comver-us/windows-serverisdministration\windows-commands/windows-comman's ‘ara, 521 AM Windows commans | Mirosot Lear © bitsadmin transfer © 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 ° © bitsadmin wrap * bootefg © bootefg addsw © bootcfg copy © bootcfg dbg1394 © bootcfg debug © bootcfg default © bootcfg delete © bootcfg ems © bootefg query © bootcfg raw © bootefg rmsw © bootcfg timeout * break * cacls * call eed * certreq © certutil * change © change logon ‘© change port © change user © chep * chdir * chglogon © chgport /ntps:leam microsof. comver-us/windows-serverisdministration\windows-commands/windows-comman's 723 19727129, 5:24 AM ‘Windows commands | Microsoft Learn chgusr chkdsk chkntfs choice cipher clean cleanmgr dip dls cmd cdkey cmstp color comp compact compact vdisk convert © convert basic © 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 © create volume stripe escript date dediag /ntps:leam microsof. comver-us/windows-serverisdministration\windows-commands/windows-comman's 823 19727129, 5:24 AM degpofix defrag del delete © delete disk © delete partition © delete shadows © delete volume detach vdisk detail © detail disk © detail partition © detail vdisk © detail volume dfsdiag © dfsdiag testdes ° disdiag testdfsconfig © disdiag testdfsintegrity © dfsdiag testreferral © dfsdiag testsites disrmig diantz dir diskcomp diskcopy diskpart diskpert diskraid diskshadow dispdiag dnscmd doskey driverquery echo edit ‘Windows commands | Microsoft Learn /ntps:leam microsof. comver-us/windows-serverisdministration\windows-commands/windows-comman's 9123 19727129, 5:24 AM Windows commands | Mirosat Learn endlocal end restore erase eventcreate Evntcmd exec exit expand expand vdisk expose extend extract fe filesystems find findstr finger flattemp fondue for forfiles format freedisk futil © fsutil 8dot3name © fsutil behavior fsutil devdrv fsutil dirty futil file fsutil fsinfo fsutil hardlink futil objectid fsutil quota © fsutil repair © fsutil reparsepoint 0 00 0 0 °° hitps:leam mierosof. conver-ushuindows-serverladministration|windows-commandsiwindows-commands 10123 19727129, 5:24 AM °° 0000000 F000 0 0000000 0 000000000000000 Windows commans | Mirosot Lear fsutil resource fsutil sparse fsutil tiering fsutil transaction fsutil usn fsutil volume fsutil wim ftp append 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 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 recy ftp remotehelp ftp rename /ntps:leam microsof. comver-us/windows-serverisdministration\windows-commands/windows-comman's 118 19727129, 5:24 AM Windows commands | MictosoR Learn © ftp rmdir ftp send ftp status ftp trace ftp type ftp user ftp verbose ftp mdelete © ftp mdir ftype fveupdate °° 00000 getmac gettype goto gpfixup gpresult gpt gpupdate graftabl help helpetr hostname icacls if import (shadowdisk) import (diskpart) inactive ipconfig ipxroute hitps:leam mierosof. conver-ushuindows-serverladministration|windows-commandsiwindows-commands 1223 19727129, 5:24 AM ‘Windows commands | Microsoft Learn * irftp * jetpack K © klist © ksetup ° 0 0000000000000 °° 0 000 ° 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 ksetup server ksetup setcomputerpassword ksetup setenctypeattr ksetup setrealm ksetup setrealmflags © ktmutil * ktpass © label /ntps:leam microsof. comver-us/windows-serverisdministration\windows-commands/windows-comman's 13923 ‘war, 5:21 AM Windows commans | Mirosot Lear © 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 import and logman export logman query logman start and logman stop logman update logman update alert logman update api logman update cfg logman update counter © logman update trace 0 0000000000000 * logoff * Ipq * lpr * macfile © makecab ‘* manage bde © manage bde status, © manage bde on ‘© manage bde off © manage bde pause © manage bde resume ‘© manage bde lock /ntps:leam microsof. comver-us/windows-serverisdministration\windows-commands/windows-comman's 1423 19727129, 5:24 AM Windows commands | Meroso Learn © 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 mapadmin md 00000 °° pefreespace merge vdisk mkdir miklink mme mode more mount mountvol move mabkup masve matgsve msdt msg msiexec msinfo32 mstsc nbtstat netefg netdom net print /ntps:leam microsof. comver-us/windows-serverisdministration\windows-commands/windows-comman's 1523 19727129, 5:24 AM ° Windows commans | Mirosot Lear netsh netstat nfsadmin nfsshare nfsstat nlbmgr 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 0 0000000000000 nslookup set recurse nslookup set retry nslookup set root nslookup set search nslookup set srchlist nslookup set timeout nslookup set type nslookup set ve nslookup view 0000000000 ntbackup ntcmdprompt ntfrsutl /ntps:leam microsof. comver-us/windows-serverisdministration\windows-commands/windows-comman's 1623 19727129, 5:24 AM Windows commands | MictosoR Learn offline © offline disk © offline volume online © online disk © online volume opentiles pagefileconfig path pathping pause pbadmin pentnt perfmon ping pktmon pnpunattend pnputil popd powershell powershell ise print prnenfg pmndrvr prnjobs pnmngr pmport prngctl prompt pubpm pushd pushprinterconnections pwlauncher pwsh hitps:leam mierosof. conver-ushuindows-serverladministration|windows-commandsiwindows-commands 1723 19727129, 5:24 AM Q * qappsrv © qprocess © query ° ° ° query process query session query termserver query user © quser © qwinsta ord © rdpsign * recover * recover disk group © refsutil * reg 0 000 °° ° ° reg add reg compare reg copy reg delete reg export reg import reg load reg query reg restore reg save reg unload © regini © regsvr32 © relog © rem * remove * ren * rename ‘Windows commands | Microsoft Learn hitps:leam mierosof. conver-ushuindows-serverladministration|windows-commandsiwindows-commands 1823 19727129, 5:24 AM ‘Windows commands | Microsoft Learn repadmin repair ° repair bde replace rescan reset ° reset session retain revert rexec risetup rmdir robocopy route ws2008 rpcinfo rpcping rsh rundll32 rundil32 printui rwinsta san sc config sc create sc delete sc query schtasks. scwemd ° ° ° ° ° ° sowemd analyze sowemd configure sowemd register sowemd rollback sowemd transform scwemd view secedit ° secedit analyze hitps:leam mierosof. conver-ushuindows-serverladministration|windows-commandsiwindows-commands 1923 11727123, 5:21 AM ‘Windows commands | Microsoft Learn ° 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 set id setlocal set metadata set option set verbose 000000 © setx * sfc © shadow # shift © showmount © shrink © shutdown * simulate restore © sort © start ‘* subcommand set device © subcommand set drivergroup ‘© subcommand set drivergroupfilter ‘© subcommand set driverpackage ‘* subcommand set image * subcommand set imagegroup subcommand set server /ntps:leam microsof. comver-us/windows-serverisdministration\windows-commands/windows-comman's 20723 19727129, 5:24 AM Windows commends | Microsoft Learn 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 00000000 telnet unset tftp time timeout title tintadmn tpmtool tpmvsemgr tracerpt tracert tree /ntps:leam microsof. comver-us/windows-serverisdministration\windows-commands/windows-comman's ain. 19727129, 5:24 AM ‘Windows commands | Microsoft Learn tscon tsdiscon tsecimp tskill tsprof type typeperf tzutil unexpose uniqueid unlodctr ver verifier verify vol vssadmin © vssadmin delete shadows © vssadmin list shadows © vssadmin list writers © vssadmin resize shadowstorage waitfor wbadmin wbadmin delete catalog wbadmin delete systemstatebackup wbadmin disable backup wbadmin enable backup wbadmin get disks 0 00000 wbadmin get items © wbadmin get status /ntps:leam microsof. comver-us/windows-serverisdministration\windows-commands/windows-comman's rans 19727129, 5:24 AM Windows commands | Mirosat Learn © wbadmin get versions © wbadmin restore catalog © wbadmin start backup © wbadmin start recovery © wbadmin start sysrecovery © wbadmin start systemstatebackup © wbadmin start systemstaterecovery © wbadmin stop job wesutil wecutil wevtutil where whoami winnt, winnt32 winrs winsat mem winsat mfmedia wmic writer wscript xcopy hitps:leam mierosof. conver-ushuindows-serverladministration|windows-commandsiwindows-commands 2313

You might also like