รวมคำสั่งจาก A – Z ที่สั่งผ่าน CMD

เคยอ่านเรื่องรายการคำสั่งที่สั่งได้ผ่าน cmd
ซึ่งเป็นโปรแกรมในกลุ่มของระบบปฏิบัติการวินโดว์
ที่เรียงคำสั่งจาก A ถึง Z
แต่บางคำสั่งใช้ได้เฉพาะใน Windows Operation System บางรุ่น
เช่น whoami ใช้ไม่ได้บน Windows XP
https://fossbytes.com/complete-windows-cmd-commands-list-index/

คำสั่งที่ใช้ประจำ มีดังนี้
1. ping เช่น ping www.google.com
2. dir เพื่อแสดงรายการแฟ้มใน folder ปัจจุบัน
3. cd เพื่อเปลี่ยนไปทำงานใน folder อื่น
4. tracert เช่น tracert www.google.com
5. ipconfig เพื่อแสดงหมายเลข ip address ของเครื่อง

dos command
dos command

รายการคำสั่งทั้งหมด มีดังนี้
1    addusers    Used to add and list users in a CSV file
2    admodcmd    Used for bulk modifying contents in an active directory
3    arp    Address Resolution Protocol is used to map IP address to the hardware address
4    assoc    Used to change associations for file extensions
5    associat    One step file association
6    at    Run a command at a specific time
7    atmadm    Display connection info of the ATM adapter
8    attrib    Used to change file attributes
9    bcdboot    Used to create and repair a system partition
10    bcdedit    Used to manage boot configuration data
11    bitsadmin    Used to manage the Background Intelligent Transfer Service
12    bootcfg    Used to edit boot configuration in Windows
13    break    Enable/Disable break capability (CTRL+C) in CMD
14    cacls    Used to change permissions of files
15    call    Used one batch program to call another
16    certreq    Used to request a certificate from a certification authority
17    certutil    Manage Certification Authority files and services
18    cd    Used to change folder (directory) or go to a specific one
19    change    Used to change terminal services
20    chcp    Displays the number of active console code page
21    chdir    Same as cd command
22    chkdsk    Used to check and repair issues in the disk
23    chkntfs    Used to check the NTFS file system
24    choice    Accept user input (via keyboard) to a batch file
25    cipher    Used to encrypt/decrypt files and folder
26    cleanmgr    Used clean temp files and recycle bin automatically
27    clip    Copy result of any command (stdin) to Windows clipboard
28    cls    Clear CMD screen
29    cmd    Used to start a new CMD shell
30    cmdkey    Used to manage stored usernames and passwords
31    cmstp    Used to install or remove a connection manager service profile
32    color    Change the color of the CMD shell using options
33    comp    Compare contents of two files or two sets of files
34    compact    Compress files and folders on an NTFS partition
35    compress    Compress one or more files
36    convert    Convert a FAT partition to NTFS
37    copy    Copy one or more files to another location
38    coreinfo    Show the mapping between logical and physical processors
39    cprofile    Cleans specified profiles of wasted space and disabled user-specific file associations
40    cscmd    Configure offline files on a client computer
41    csvde    Import or Export the data of an active directory
42    date    Used to display the date or change it.
43    defrag    Used to defragment system hard drive.
44    del    Used to delete a file(s).
45    delprof    Used to delete user profile(s).
46    deltree    Used to delete a folder and its sub-folders.
47    devcon    Access the command line device manager utility.
48    dir    Used to display files and folders list.
49    dirquota    Manage File Server Resource Manager quotas.
50    diruse    Used to display disk usage.
51    diskcomp    Compare contents of two floppy disks.
52    diskcopy    Copy data of one floppy disk to another.
53    diskshadow    Access the Disk Shadow Copy Service.
54    diskuse    View used space in folder(s).
55    doskey    Used to edit command line, recall commands, and create macros.
56    driverquery    Display a list of installed device drivers.
57    dsacls    View and edit access control entries for objects in active directory.
58    dsadd    Used to add objects to active directory.
59    dsget    View objects in active directory.
60    dsquery    Find objects in an active directory.
61    dsmod    Used to modify objects in an active directory.
62    dsmove    Rename or move an active directory object.
63    dsrm    Remove objects from an active directory.
64    dsmgmt    Manage Active Directory Lightweight Directory Services
65    echo    Turn command-echoing feature on/off, display a message on the screen.
66    endlocal    End localization environment changes in a batch file.
67    erase    Used to delete on or more file(s).
68    eventcreate    Add custom event to Windows event log (Admin rights required).
69    eventquerry    Display list of events and their properties from event logs.
70    eventtriggers    Display and configure event triggers on local and remote machines.
71    exit    Exit the command line (Quit current batch script).
72    expand    Uncompress one or more .CAB file(s)
73    explorer    Open Windows Explorer.
74    extract    Uncompress one or more Windows cabinet file(s)
75    fc    Used to compare two files.
76    find    Used to search a specified text string in a file.
77    findstr    Used to find string patterns in files.
78    finger    Display information about user(s) on a specified remote computer.
79    flattemp    Used to enable/disable flat temporary folders.
80    For    Run a command in a loop for a file(s) for defined parameter.
81    forfiles    Used for batch processing of selected file(s)
82    format    Used to format a disk.
83    freedisk    Used to check free space on a disk.
84    fsutil    File system utility to manage file and drive properties.
85    ftp    Use FTP service to transfer files from one PC to another.
86    ftype    Display/ Modify file extension type associations.
87    getmac    Used to display the MAC address of your network adapter.
88    goto    Used to direct a batch program to a line identified by a label.
89    gpresult    Display Group Policy Settings and Resultant Set of Policy for a user.
90    gpupdate    Update local and active directory based on group policy settings.
91    graftabl    Turn on the ability to display an extended character in graphics mode.
92    help    Display a list of commands and see online information for them.
93    hostname    Used to display hostname of the computer.
94    icacls    Used to change permissions of files and folders.
95    iexpress    Used to create a self-extracting zip archive.
96    if    Used for conditional processing in batch programs.
97    ifmember    Display the group(s) an active user belongs to.
98    inuse    Replace the files which the OS is currently using (restart required).
99    ipconfig    Display and change Windows IP configuration.
100    ipseccmd    Used to configure IP Security policies.
101    ipxroute    Display and modify routing table information used by IPX protocol.
102    irftp    Used to send files over an infrared link (infrared functionality required).
103    label    Used to change the name of a disk.
104    lodctr    Update registry values with latest performance counters.
105    logman    Used to manage performance monitor logs.
106    logoff    Log a user off.
107    logtime    Add the date, time, and a message to a text file.
108    lpq    Displays print queue status.
109    lpr    Used to send a file to a computer running the Line Printer Daemon service.
110    macfile    Manage files server for Mackintosh.
111    makecab    Used to create .cab files.
112    mapisend    Used to send email from command line.
113    mbsacli    Microsoft Baseline Security Analyser.
114    mem    Used to show memory usage.
115    md    Used to create directories and sub-directories.
116    mkdir    Used to create directories and sub-directories.
117    mklink    Used to create symbolic link to a directory.
118    mmc    Access Microsoft Management Console.
119    mode    Configure COM, LPT, CON system devies.
120    more    Display one screen of output at time.
121    mountvol    Create, list, or delete a volume mount point.
122    move    Used to move files from one folder to another.
123    moveuser    Move user account to a domain or between machines.
124    msg    Used to send a pop-up message to a user.
125    msiexec    Install, modify, consfigure using Windows Installer.
126    msinfo32    Display system information.
127    mstsc    Create a remote desktop connection.
128    nbstat    Display NetBIOS over TCP/IP information.
129    net    Used to manage network resources and services.
130    netdom    Network Domain Manager utility
131    netsh    Display or modify network configuration
132    netstat    Display active TCP/IP connections.
133    nlsinfo    Used to display locale information
134    nltest    List domain controllers, force remote shutdown, etc.
135    now    Display date and time.
136    nslookup    Check IP address on a Name Server.
137    ntbackup    Backup data to tape using CMD or batch file.
138    ntcmdprompt    Runs cmd.exe instead of command.exe in an MS-DOS application.
139    ntdsutil    Manage Active Directory Domain Services
140    ntrights    Used to edit user account privileges.
141    ntsd    Only for system developers.
142    nvspbind    Used to modify network bindings.
143    openfiles    Queries or displays open files.
144    pagefileconfig    Display and configure Virtual memory settings.
145    path    Set PATH environment variable for executable files.
146    pathping    Latency and Packet loss info for each node in the network path.
147    pause    Used to stop processing of a batch file.
148    pbadmin    Starts Phone Book Administrator
149    pentnt    Detect Floating Point Division error in the Pentium chip.
150    perfmon    Access performance monitor in CMD
151    perms    Display a user\’s ACL permissions for a file.
152    ping    Test network connection to a computer.
153    popd    Go to the latest path/folder stored by PUSHD command
154    portqry    Display TCP and UDP port status.
155    powercfg    Used to configure power settings and know battery health.
156    print    Used to print a text file(s) from CMD.
157    printbrm    For backup/recovery/migration of the print queue.
158    prncnfg    Used to configure/rename a printing device.
159    prndrvr    List/add/delete printer drivers.
160    prnjobs    List/pause/resume/cancel print jobs.
161    prnmngr    List/add/delete printers, display/set default printer.
162    prnport    List/create/delete TCP printer ports, display/change port configuration.
163    prnqctl    Clear printer queue, print a test page.
164    procdump    Monitor system for CPU spikes, generate a crash report during a spike.
165    prompt    Used to change the Prompt in CMD.
166    psexec    Run a CMD process on a remote computer.
167    psfile    Display remotely opened files, close an open file.
168    psinfo    List system information about a local/remote machine.
169    pskill    Kill a process(es) using its name or process ID.
170    pslist    Display process status and info about active processes.
171    psloggedon    See active users on machine.
172    psloglist    Display event log records.
173    pspasswd    Used to change account password.
174    psping    Used to measure network performance.
175    psservice    Display and control services on a machine.
176    psshutdown    Shutdown/restart/logoff/lock a local or remote machine.
177    pssuspend    Used to suspend a process on a local or remote computer.
178    pushd    Change current folder and store previous folder for use by POPD.
179    qgrep    Search file(s) for a given string pattern.
180    query process or qprocess    Display information about processes.
181    rasdial    Display Remote Access Service Status.
182    rasphone    Manage RAS connections.
183    rcp    Copy files to a computer running remote shell service.
184    recover    Recover readable data from a defective disk.
185    reg    Display/add/change registry keys and values in Windows registry.
186    regedit    Import/export/delete settings from a .reg text file.
187    regsvr32    Used to register/unregister a DLL file.
188    regini    Used to change registry permissions.
189    relog    Export performance counters to other formats like TSV, CSV, SQL.
190    rem    Add comments in batch file.
191    ren    Used to rename a file(s).
192    replace    Used to replace a file with another file of same name.
193    reset session    Used to reset a remote desktop session.
194    rexec    Run commands on remote machines running Rexec service.
195    rd    Used to delete a folder(s).
196    rmdir    Used to delete a folder(s).
197    rmtshare    Manage file and printer shares local or remote servers.
198    robocopy    Used to copy files and folders that have changed.
199    route    Display/change the local IP routing table.
200    rsh    Run commands on remote servers running RSH service.
201    rsm    Manage media resources using Removable storage.
202    runas    Run a program as a different user.
203    rundll32    Used to run a DLL program.
204    sc    Use Service Controller to manage Windows services.
205    schtasks    Schedule command(s) to run at a specific time.
206    secedit    Configure system security.
207    set    Display/set/remove environment variables in CMD.
208    setlocal    Control visibility of environment variables in a batch file.
209    setspn    Manage Service Principal Names for an Active Directory service account.
210    setx    Set Environment Variables permanently.
211    sfc    System File Checker
212    share    List/edit a file share or print on any computer.
213    shellrunas    Used to run a command as a different user.
214    shift    Change the position of the batch parameters in a batch file.
215    shortcut    Create a Windows shortcut.
216    shutdown    Shutdown the computer.
217    sleep    Put computer to sleep for specified number of seconds.
218    slmgr    Software Licensing Management tool for activation and KMS.
219    sort    Used to sort and display a redirected or piped input.
220    start    Start a program, command, or batch file.
221    strings    Find ANSI and UNICODE strings in binary files.
222    subinacl    Display/modify ACEs for file and folder permissions.
223    subst    Associate a path with a drive letter.
224    sysmon    Monitor and log system activity to Windows event log.
225    systeminfo    Display detailed configuration information about the computer.
226    takeown    Used to take the ownership of a file.
227    taskkill    Used to terminate on or more running processes.
228    tasklist    Display a list of running apps and services.
229    tcmsetup    Enable/disable TAPI client.
230    telnet    Communicate with a remote machine using TELNET protocol.
231    tftp    Transfer files to and from a remote machine running TFTP protocol.
232    time    Display/change system time.
233    timeout    Delay a batch file execution for specified seconds.
234    title    Change
235    touch    Change file timestamps.
236    tracerpt    Process event trace logs and generate trace analysis report.
237    tracert    Trace route to a remote host by sending ICMP request messages.
238    tree    Display a folder structure in the form of a graphical tree.
239    tsdiscon    Terminate a remote desktop connection.
240    tskill    Terminate a running process on a RD Session Host server.
241    tssutdn    Shutdown/reboot a terminal server remotely.
242    type    Show contents of a text file.
243    typeperf    Write performance data to a CMD window or a log file.
244    tzutil    Time Zone Utility.
245    unlodctr    Remove performance counter names and explain text for a service from the registry.
246    ver    Show version number of installed OS.
247    verify    Verify whether files are saved correctly on the disk.
248    vol    Show disk volume label and serial number.
249    vssadmin    Show shadow copy backups, installed shadow copy writers and providers.
250    w32tm    Access Windows Time Service Utility
251    waitfor    Used to synchronise events between networked computer(s).
252    wevtutil    Retrieve information about event logs and publishers.
253    where    Find and display file(s) in the current directory.
254    whoami    Display information about the active user.
255    windiff    Compare contents of two files or sets of files.
256    winrm    Windows Remote Management.
257    winrs    Windows Remote Shell.
258    wmic    Windows Management Instrumentation Command.
259    wuauclt    Windows Update Agent to download new update files.
260    xcalcs    Change ACLs for files and folders.
261    xcopy    Copy files or directory trees to another folder.

Author: บุรินทร์ รุจจนพันธุ์

I am Lecturer, Developer, Researcher, Columnist, Writer, Photographer, and Webmaster - L@mpang man

Leave a Reply