Tweet A - Z INDEX OF THE WINDOWS COMMAND. |TECHNICIZE483

Sunday, July 21

A - Z INDEX OF THE WINDOWS COMMAND.

                                    [A]  
1. ADDUSERS ==> Add or list users to/from a CSV file
 Syntax

  Create Users:
            AddUsers /c filename [/s:x] [/?] Domain Password_options
  Dump to file:
            AddUsers /d{:u} filename [/s:x] [/?] Domain Password_options
  Erase Users:
            AddUsers /e filename [/s:x] [/?] Domain Password_options
2.  ADmodcmd ==> Active Directory Bulk Modify
Syntax
      admodcmd [-dn BaseDN] [-p pagesize] [-s] [-server servername]
       [-f LDAPFilter] [modification]
3.   ARP ==> Address Resolution Protocol.
Syntax
   View the contents of the local ARP cache table 
      ARP -a [ip_addr] [-N if_addr]

   Add a static Arp entry for frequent accessed hosts 
      ARP -s ip_addr eth_addr [if_addr]

   Delete an entry 
      ARP -d ip_addr [if_addr]
4.   ASSOC ==> Change file extension associations•
Syntax
   ASSOC .ext = [fileType]
   ASSOC
   ASSOC .ext
   ASSOC .ext =
5.   ASSOCIAT ==> One step file association.
Syntax
      ASSOCIATE .ext filename [/q /d /f]
6.      AT ==> Schedule a command to run at a specific time.
Syntax
      Create an AT job:
      AT [\\computername] hh:mm [/INTERACTIVE] [ /EVERY:day(s) | /NEXT:day(s) ] "command"

      Delete an AT job:
      AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]] 
7.  ATTRIB ==> Change file attributes.
Syntax
      ATTRIB [ + attribute | - attribute ] [pathname] [/S [/D]]
                                                                     [B]
8.   BCDBOOT ==> Create or repair a system partition.
Syntax
      BCDBOOT source [/l locale] [/s volume-letter]
         [/v] [/m [{OS Loader GUID}]]
9.   BCDEDIT ==> Manage Boot Configuration Data
Syntax
      BCDEdit /Command [Argument1] [Argument2] ...
10. BITSADMIN ==> Background Intelligent Transfer Service
Syntax
      BITSADMIN [/RAWRETURN] [/WRAP | /NOWRAP] command
11. BOOTCFG ==> Edit Windows boot settings
Syntax
      BOOTCFG /addsw    Add OS load options for an OS entry in boot.ini

      BOOTCFG /copy     Duplicate the entries for an OS instance.

      BOOTCFG /dbg1394  Configure 1394 port debugging

      BOOTCFG /debug    Edit the debug settings for an OS.

      BOOTCFG /default  Specify the default OS

      BOOTCFG /delete   Delete an OS entry [operating systems] section of Boot.ini

      BOOTCFG /ems      Redirect the EMS console to a remote computer (server only). 
                        (Emergency Management Services) 

      BOOTCFG /list     List entries in boot.ini

      BOOTCFG /query    Display section entries from Boot.ini

      BOOTCFG /raw      Add OS load options, specified as a string 

      BOOTCFG /rebuild  Totally rebuild boot.ini (use when Windows won't start)

      BOOTCFG /rmsw     Remove OS load options for an OS

      BOOTCFG /timeout  Change the OS time-out value.

12. BROWSTAT ==> Get domain, browser and PDC info
Syntax
      BROWSTAT option

                                        [C]
13. CACLS ==>   Change file permissions
Syntax
      CACLS pathname [options]
   
14. CALL  ==> Call one batch program from another•
Syntax
      CALL [drive:][path]filename [parameters]

      CALL :label [parameters]

      CALL internal_cmd
15. CERTREQ ==> Request certificate from a certification authority
Syntax
      Certreq [-submit] [-retrieve RequestID] [-new] [-accept] [-policy] [-sign]
                 [-attrib AttributeString] [-binary] [-config CAMachineName\CAName]
                    [-crl] [-rpc] [-cert CertID]
                       [RequestFileIn | CertChainFileIn | FullResponseFileIn | CertFileIn | PolicyFileIn]
                          [RequestFileOut | CertChainFileOut | FullResponseFileOut | CertFileOut | PKCS10FileOut]
16. CERTUTIL  ==>Utility for certification authority (CA) files and services
Syntax:
  Dump certificate file information
  CertUtil [Options] [-dump] [File]
    Options:  [-f] [-silent] [-split] [-p Password] [-t Timeout]
17. CD ==> Change Directory - move to a specific Folder•
Syntax
      CD [/D] [drive:][path]
      CD [..]
18. CHANGE ==>  Change Terminal Server Session properties
Syntax
      CHANGE USER /options
      CHANGE LOGON /options
      CHANGE PORT /options
19. CHKDSK ==> Check Disk - check and repair disk problems
Syntax
      CHKDSK [drive:][[path]filename] [/F] [/V] [/R] [/L[:size]] 
20. CHKNTFS ==> Check the NTFS file system
Syntax
      CHKNTFS drive: [...]
      CHKNTFS /C drive: [...]
      CHKNTFS /X drive: [...]
      CHKNTFS /t[:Time]
      CHKNTFS /D
21. CHOICE  ==> Accept keyboard input to a batch file
CHOICE [/c [choiceKeys]] [/N] [/CS] [/t Timeout /d Choice] [/m Text]
22. CIPHER  ==> Encrypt or Decrypt files/folders
Syntax:

 Encrypt/Decrypt:
    CIPHER [{/e | /d}] [/s:Folder] [options] [/u[/n]] [{PathName [...]] 

 New recovery agent certificate:
    CIPHER /r:PathNameWithoutExtension

 Remove data:
    CIPHER /w:PathName

 Backup Keys:
    CIPHER /x[:PathName
23. CleanMgr  ==>Automated cleanup of Temp files, recycle bin
Syntax
     CLEANMGR option
24. CLEARMEM ==> Clear memory leaks

25. CLIP  ==>   Copy STDIN to the Windows clipboard
Syntax
      command | CLIP

      CLIP < filename.txt
26. CLS  ==>    Clear the screen•

27. CLUSTER ==> Windows Clustering

28. CMD  ==>    Start a new CMD shell
Syntax
      CMD [charset] [options]

      CMD [charset] [options] [/c Command] 

      CMD [charset] [options] [/k Command] 
29. CMDKEY ==> Manage stored usernames/passwords
Syntax
      cmdkey [{/add:TargetName|/generic:TargetName}]
         {/smartcard|/user:UserName [/pass:Password]}
            [/delete{:TargetName|/ras}]
               /list:TargetName
30. COLOR ==> Change colors of the CMD window•
Syntax
      COLOR [background][foreground]
31. COMP  ==>   Compare the contents of two files or sets of files
Syntax
      COMP [pathname1] [pathname2] [/D] [/A] [/L] [/N=number] [/C]
32. COMPACT ==> Compress files or folders on an NTFS partition

33. COMPRESS ==> Compress individual files on an NTFS partition

34. CON2PRT ==>  Connect or disconnect a Printer
Syntax 
      CON2PRT /f
      CON2PRT /c \\PrintServer\PrintShare
      CON2PRT /cd \\PrintServer\PrintShare
35. CONVERT ==>  Convert a FAT drive to NTFS
Syntax
      convert [Volume] /fs:ntfs [/v] [/cvtarea:FileName] [/nosecurity] [/x]
36. COPY   ==>  Copy one or more files to another location•
Syntax
      COPY source destination [options]

      COPY source1 + source2.. destination [options]
37. CSCcmd  ==>  Client-side caching (Offline Files)
Syntax
      CSCCMD Option(s)
38. CSVDE ==> Import or Export Active Directory data
syntax

   Export to file:
             CSVDE [-f FileName] [options]
            LDIFDE [-f FileName] [options]

   Import from File:
             CSVDE -i [-f FileName] [options]
            LDIFDE -i [-f FileName] [options]
                                                           [D]
39. DATE   ==>  Display or set the date•
Syntax
      DATE <date_today>
40. DEFRAG  ==> Defragment hard drive
Syntax
      DEFRAG <volume> [-a] [-f] [-v] [-?]
41. DEL  ==>    Delete one or more files•
Syntax
      DEL [options] [/A:file_attributes] files_to_delete
42. DELPROF ==> Delete user profiles
Syntax
      DELPROF [options days]
43. DELTREE ==> Delete a folder and all subfolders

44. DevCon ==>  Device Manager Command Line Utility Syntax
      devcon.exe [-r] [-m:\\machine] command [arg...]

      devcon.exe help command
45. DIR ==> Display a list of files and folders•
Syntax
      DIR [pathname(s)] [display_format] [file_attributes] [sorted] [time] [options]
46. DIRUSE ==>  Display disk usage
Syntax
      DIRUSE [options] Folders...
47.   DISKPART ==> Disk Administration

48. DISKSHADOW ==> Volume Shadow Copy Service
Syntax
   Start interactive mode:
      diskshadow

   Execute a script:
      diskshadow -s script.txt
49. DNSSTAT ==> DNS Statistics

50. DOSKEY  ==>  Edit command line, recall commands, and create macros
Syntax
      DOSKEY [options] [macroname=[text]]
51. DriverQuery ==>  Display installed device drivers
Syntax
      driverquery  [/s Computer] [/u Domain\User /p Password]
         [/fo {TABLE|LIST|CSV}] [/nh] [/v] [/si]
52. DSACLs  ==>  Active Directory ACLs
Syntax
      DSACLS "[\\Computer\]ObjectDN" [/A] [/D PermissionStatement [PermissionStatement]...]
         [/G PermissionStatement [PermissionStatement]...] [/I:{T | S | P}]
            [/N] [/P:{Y | N}] 
               [/R {User | Group} [{User | Group}]...] [/S [/T]]
53. DSAdd   ==> Add items to active directory 
Syntax
   DSADD Computer
   DSADD Contact 
   DSADD Group
   DSADD OU
   DSADD User
   DSADD Quota
54. DSGet  ==>  View items in active directory 
Syntax
   DSGet Computer
   DSGet Contact
   DSGet Group
   DSGet OU
   DSGet Partition
   DSGet Quota
   DSGet Server
   DSGet Subnet
   DSGet User
55. DSQuery ==>  Search for items in active directory 
Syntax
   DSQuery Computer 
   DSQuery Contact
   DSQuery Group
   DSQuery OU
   DSQuery Site
   DSQuery Server 
   DSQuery User
   DSQuery Quota
   DSQuery Partition
   DSQuery *  (LDAP query)
56. DSMod   ==>  Modify items in active directory 
Syntax
   DSMOD Computer
   DSMOD Contact
   DSMOD Group
   DSMOD OU
   DSMOD Server
   DSMOD User
   DSMOD Quota
   DSMOD Partition
57. DSMove ==>  Move an Active directory Object
Syntax
      dsmove ObjectDN [-newname NewRDN] [-newparent ParentDN]
         [{-s Server | -d Domain}]
            [-u UserName] [-p {Password | *}]
               [-q] [{-uc | -uco | -uci}]
58. DSRM ==> Remove items from Active Directory
Syntax
      DSRM ObjectDN [-subtree [-exclude]] [-noprompt]
            [{-s Server | -d Domain}] [-u UserName] [-p {Password | *}]
               [-c] [-q] [{-uc | -uco | -uci}]
                                                                          [E]
59. ECHO  ==>   Display message on screen•
Syntax
      ECHO [ON | OFF] 
      ECHO [message] 
60. ENDLOCAL ==> End localisation of environment changes in a batch file•Syntax
      ENDLOCAL
61. ERASE  ==>  Delete one or more files•
Syntax
      DEL [options] [/A:file_attributes] files_to_delete
62. EVENTCREATE  ==> Add a message to the Windows event log
Syntax
      EVENTCREATE [/S system [/U username [/P [password]]]] /ID eventid
            [/L logname] [/SO srcname] /T type /D description
63. EXIT  ==>   Quit the current script/routine and set an error-level•
Syntax
      EXIT [/B] [exitCode]
64. EXPAND ==> Uncompress files
Syntax
      EXPAND Source Destination
      EXPAND -r Source Destination
      EXPAND -r Source
65. EXTRACT  ==> Uncompress CAB files
Syntax
      EXTRACT [options] CAB_file [filenames]

                                      [F]
66. FC    ==>    Compare two files
Syntax
      FC /B pathname1 pathname2

      FC [options] pathname1 pathname2
67. FIND   ==>  Search for a text string in a file
Syntax
      FIND [/V] [/C] [/N] [/I] "string" [pathname(s)]
68. FINDSTR ==> Search for strings in files
Syntax
      FINDSTR [options] [/F:file] [/C:string] [/G:file]
        [/D:DirList] [/A:color] [/OFF[LINE]] [string(s)] [pathname(s)]

      FINDSTR [options] [/F:file] [/R] [/G:file]
        [/D:DirList] [/A:color] [/OFF[LINE]] [string(s)] [pathname(s)]
69. FOR /F ==> Loop command: against a set of files•
Syntax
        FOR /F ["options"] %%parameter IN (filenameset) DO command 
      
        FOR /F ["options"] %%parameter IN ("Text string to process") DO command
  70. FOR /F ==>  Loop command: against the results of another command•
Syntax
      FOR /F ["options"] %%parameter IN ('command_to_process') DO command
71. FOR   ==>   Loop command: all options Files, Directory, List•
syntax-FOR-Files
       FOR %%parameter IN (set) DO command 
   72. FORFILES ==> Batch process multiple files
Syntax
      FORFILES [/p Path] [/m Mask] [/s] [/c Command] [/d [+ | -] {dd/MM/yyyy | dd}]   
73. FORMAT ==> Format a disk
Syntax
      FORMAT drive: [/FS:file-system] [/V:label] [/Q] [size] [/C]
74. FREEDISK ==> Check free disk space (in bytes)

75. FSUTIL  ==> File and Volume utilities
Create a hardlink
    FSUTIL hardlink create new_filename existing_filename
76. FTP    ==>  File Transfer Protocol
Syntax
      FTP [-options] [-s:filename] [-w:buffer] [host]
77. FTYPE  ==>  File extension file type associations•

Syntax
   FTYPE fileType=executable_path

   FTYPE

   FTYPE fileType

   FTYPE fileType=
                                                                [G]
78. GETMAC ==> Display the Media Access Control (MAC) address
Syntax
      getmac [/s Computer [/u Domain\User [/p Password]]]
         [/fo {TABLE|LIST|CSV}] [/nh] [/v]
79. GLOBAL ==> Display membership of global groups
Syntax
      GLOBAL group_name domain_name | \\server
80. GOTO ==> Direct a batch program to jump to a labelled line•
syntax
      GOTO label

      GOTO:eof
81. GPRESULT ==> Display Resultant Set of Policy information
Syntax
       gpresult [/s Computer [/u [Domain\]UserName [/p [Password]]]]
          [/user [TargetDomain\]TargetUser] [/scope {user | computer}]
             [/r | /v | /z] [[/x | /h] FileName [/f]]
82. GPUPDATE ==> Update Group Policy settings
Syntax
       GPUpdate  [/Force] [/Logoff] [/Boot] [/Sync]
           [/Target:{Computer | User}] [/Wait:value]
                                                                 [H]
83. HELP  ==>   Online Help

Syntax
      WINHELP [options] helpfile.hlp

      WINHLP32.exe [options] helpFile

                                                                     [I]
84. iCACLS ==> Change file and folder permissions
syntax (files)
      ICACLS FileName [/grant[:r] User:Permission[...]]
         [/deny User:Permission[...]]
            [/remove[:g|:d]] User[...]]
               [/t] [/c] [/l] [/q]
                  [/setintegritylevel Level[...]]
85. IF    ==>   Conditionally perform a command•
File syntax
   IF [NOT] EXIST filename command 

   IF [NOT] EXIST filename (command) ELSE (command)

String syntax
   IF [/I] [NOT] item1==item2 command 

   IF [/I] item1 compare-op item2 command

   IF [/I] item1 compare-op item2 (command) ELSE (command)

Error Check Syntax
   IF [NOT] DEFINED variable command

   IF [NOT] ERRORLEVEL number command 

   IF CMDEXTVERSION number command
86. IFMEMBER ==> Is the current user a member of a Workgroup
Syntax
      IFMEMBER [options] WorkGroup [ WorkGroup2 WorkGroup3...]
87. IPCONFIG ==> Configure IP

Syntax

  IPCONFIG /all         Display full configuration information.

  IPCONFIG /release [adapter]
                        Release the IP address for the specified adapter.

  IPCONFIG /renew [adapter]
                        Renew the IP address for the specified adapter.

  IPCONFIG /flushdns    Purge the DNS Resolver cache.

  IPCONFIG /registerdns Refresh all DHCP leases and re-register DNS names.

  IPCONFIG /displaydns  Display the contents of the DNS Resolver Cache.

  IPCONFIG /showclassid adapter
                        Display all the DHCP class IDs allowed for adapter.

  IPCONFIG /setclassid  adapter [classid]
                        Modify the dhcp class id.
                                                         [K]
88. KILL ==> Remove a program from memory
Syntax
      KILL [option] process_id
      KILL [option] task_name
      KILL [option] window_title
                                                                       [L]
89. LABEL  ==>  Edit a disk label
Syntax
      LABEL [drive:][label]
90. LOCAL  ==>  Display membership of local groups
Syntax
      LOCAL group_name domain_name | \\server
100. LOGEVENT ==> Write text to the event viewer
Syntax
      logevent [-m \\MachineName] [options] "Event Text"
101. LOGMAN  ==> Manage Performance Monitor
Syntax
      logman [create|query|start|stop|delete|update|import|export] [options]
102. LOGOFF ==>  Log a user off
Syntax
      LOGOFF [/f] [/n] 
103. LOGTIME ==> Log the date and time in a file

Syntax
      LOGTIME text_string

                                  [M]
104. MAPISEND ==> Send email from the command line
Syntax
      MAPISEND -u "profile" -p password
         -r recipient -s "subject" -m text message [options]

      MAPISEND -u "profile" -p password
         -r recipient -s "subject" -t text_file [options]
105. MBSAcli ==> Baseline Security Analyzer
Syntax
      mbsacli [/c|/i|/r|/d domainname|ipaddress|ipaddressrange]
                 [/n option] [/sus SUS server|SUS filename]
                    [/s level] [/nosum] [/nvc] [/o filename] [/e] [/l] [/ls]
                       [/lr report name] [/ld report name] [/v] [/?]
                          [/qp] [/qe] [/qr] [/q] [/f] [/unicode]
106. MEM   ==> Display memory usage
Syntax
      MEM 
      MEM /C
      MEM /D
      MEM /P
107. MD    ==>   Create new folders•
Syntax
      LOGOFF [/f] [/n] 
108. MKLINK ==> Create a symbolic link (linkd) •
Syntax
      MKLINK [[/D] | [/H] | [/J]] Link Target
109. MODE   ==>  Configure a system device

110. MORE   ==>  Display output, one screen at a time
Syntax
      command | MORE [/E [/C] [/P] [/S] [/Tn] [+n]]

      MORE [/E [/C] [/P] [/S] [/Tn] [+n]] < Pathname

      MORE /E [/C] [/P] [/S] [/Tn] [+n] [Pathname(s)]
111. MOUNTVOL ==> Manage a volume mount point
Syntax
      MOUNTVOL [drive:]path option
112. MOVE   ==>  Move files from one folder to another•
Syntax
      MOVE [options] [Source] [Target]
113. MOVEUSER  ==> Move a user from one domain to another
Syntax
      MOVEUSER [DOMAIN/]user1 [DOMAIN/]user2 [/c:computer] [/k] [/y]
114. MSG   ==>   Send a message
Syntax
      MSG username [options] [message]

      MSG sessionname [options] [message]

      MSG sessionid   [options] [message]

      MSG  @filename [options] [message]

      MSG * [options] [message]
115. MSIEXEC ==> Microsoft Windows Installer
Syntax
      MSIEXEC /Option RequiredParameter [OptionalParameter]
116. MSINFO32 ==> System Information
Syntax
      Msinfo32 [/pch] [/nfo PathName] [/report PathName]
         [/computer ComputerName] [/showcategories]
            [/category categoryID] [/categories categoryID]
117. MSTSC ==> Terminal Server Connection (Remote Desktop Protocol)
Syntax
      MSTSC option
      MSTSC /Edit "ConnectionFile"
      MSTSC /migrate
118. MV ==> Copy in-use files

Syntax
      MV /x /d source destination

                                            [N]
119. NET ==> Manage network resources


120. NETDOM  ==>  Domain Manager
Syntax
   NETDOM ADD       
   NETDOM COMPUTERNAME
   NETDOM HELP
etc.......................
121. NETSH  ==>  Configure Network Interfaces, Windows Firewall & Remote                                                    access
Syntax
      NETSH [Context] [sub-Context] command
122. NETSVC  ==> Command-line Service Controller
Syntax
      NETSVC \\server command servicename 
123. NBTSTAT ==> Display networking statistics (NetBIOS over TCP/IP)
Syntax
   By Name
      NBTSTAT -a Remote_host_Name [options] [interval] 

   By IP address
      NBTSTAT -A IP_address [options] [interval]
124. NETSTAT ==> Display networking statistics (TCP/IP)
Syntax
   NETSTAT [options] [-p protocol] [interval]
125. NOW    ==>  Display the current Date and Time 
Syntax
      NOW [message to be printed with time-stamp] 
126. NSLOOKUP ==> Name server lookup
Syntax
  Lookup the ip address of MyHost:

     NSLOOKUP [-option] MyHost
     
  Lookup ip address of MyHost on MyNameServer:
   
     NSLOOKUP [-option] MyHost MyNameServer
   
  Enter "command mode":
   
     NSLOOKUP
127. NTBACKUP ==> Backup folders to tape
Syntax:

    NTBACKUP backup [systemstate] "@bks file name"
                /J {"job name"} [options] [/SNAP:{on|off}] [/um]
128. NTRIGHTS ==> Edit user account rights
Syntax
       NTRIGHTS +r Right -u UserOrGroup [-m \\Computer] [-e Entry]

       NTRIGHTS -r Right -u UserOrGroup [-m \\Computer] [-e Entry]
                                                                  [O]
129. OPENFILES ==> Query or display open files

Syntax
      Openfiles.exe /query [/s Computer [/u Domain\User [/p Password]]]
        [/fo {TABLE|LIST|CSV}] [/nh] [/v]

      Openfiles.exe /disconnect [/s Computer  [/u Domain\User [/p Password]]]
         {[/id OpenFileID]|[/a UserName]|[/o OpenMode]} [/se SessionName] [/op OpenFileName]
                                                                 [P]
130. PATH ==> Display or set a search path for executable files•
Syntax
      PATH pathname [;pathname] [;pathname] [;pathname]...
      PATH
      PATH ;
131. PATHPING ==> Trace route plus network latency and packet loss
Syntax
      PATHPING [-n] [-h max_hops] [-g host_list] [-p period]
         [-q num_queries] [-w timeout] [-i IPAddress] [-4 ] [-6 ][TargetName]
132. PAUSE ==>   Suspend processing of a batch file and display a message•
Syntax
      PAUSE
133. PERMS  ==>  Show permissions for a user
Syntax
      PERMS [account] [path] options
134. PERFMON  ==> Performance Monitor
Syntax
      typeperf counter [counter ...] [options]

      typeperf -cf filename  [options]

      typeperf -q [object] [options]

      typeperf -qx [object] [options]
135. PING ==> Test a network connection
Syntax
      PING [options] destination_host
136. POPD   ==>  Return to a previous directory saved by PUSHD•
Syntax
      POPD 
137. PORTQRY ==> Display the status of ports and services

138. POWERCFG ==> Configure power settings
Syntax
      powercfg [Options]
139. PRINT  ==>  Print a text file
Syntax
      PRINT [/D:device] [pathname(s)]
140. PRINTBRM ==> Print queue Backup/Recovery
Syntax
      PRINTBRM -b -s \\server_name -f file_name options

      PRINTBRM -r -s \\server_name -f file_name options

      PRINTBRM -q options
141. PRNCNFG ==>  Display, configure or rename a printer

142. PRNMNGR ==> Add, delete, list printers set the default printer
Syntax
      PRNMNGR [-options] [-s server][-p printer_name][-m driver model]
                  [-r port][-u user_name][-w password]
143. PROMPT ==> Change the command prompt•
Syntax
      PROMPT [text] 
   144. PsExec  ==>   Execute process remotely
Syntax
      psexec \\computer[,computer[,..] [options] command [arguments]

      psexec @run_file [options] command [arguments]
145. PsFile  ==>   Show files opened remotelySyntax
      psfile [\\Computer [-u User [-p Passwd]]]  [[Id | path]  [-c]]
146. PsGetSid ==>  Display the SID of a computer or a user
Syntax
      psgetsid [\\computer[,computer[,...] | @get_file] [-u user [-p passwd]]] [account|SID]
147. PsInfo  ==>   List information about a system
Syntax
      psinfo [\\computer[,computer[,..]] [options] [filter]

      psinfo @file [options] [filter]
148. PsKill ==> Kill processes by name or process ID
Syntax
      pskill [- ] [-t] [\\computer [-u user] [-p passwd]] <process name | process id>
149. PsList ==> List detailed information about processes
Syntax
      pslist [-?] [-t] [-m] [-x] [\\computer [-u user] [-p passwd]] [name | pid] 
150. PsLoggedOn ==> Who's logged on (locally or via resource sharing)
Syntax
      psloggedon [- ] [-l] [-x] [\\computer | username]
151. PsLogList ==>  Event log records
Syntax
      psloglist [- ] [\\computer[,computer[,...] | @file
         [-u user [-p passwd]]] [-s [-t delim]]
            [-m #|-n #|-h #|-d #|-w]
               [-c][-x][-r][-a mm/dd/yy][-b mm/dd/yy]
                  [-f filter] [-i ID[,ID[,...] | -e ID[,ID[,...]]]
                     [-o event source[,event source][,..]]]
                        [-q event source[,event source][,..]]]
                           [-l event_log_file] <eventlog>
152. PsPasswd  ==> Change account password
Syntax
      pspasswd [[\\computer[,computer[,..] | @file 
         [-u user [-p passwd]]] Username [NewPassword]
153. PsPing ==> Measure network performance
Syntax (ICMP ping)
      psping [[-6]|[-4]] [-h [buckets]] [-i interval] [-l requestsize
        [-q] [-t|-n count] [-w count] destination
154. PsService ==> View and control services
Syntax
      psservice [\\computer [-u user] [-p passwd]] <command> <options>
155. PsShutdown ==> Shutdown or reboot a computer
Syntax
      psshutdown [[\\computer[,computer[,..] | @file [-u user [-p passwd]]]
         -s|-r|-h|-d|-k|-a|-l|-o 
            [-f] [-c] [-t nn|h:m] [-n s] [-v nn]
               [-e [u|p]:xx:yy] [-m "message"]
156. PsSuspend ==> Suspend processes
Syntax
      pssuspend [- ] [-r] [\\computer [-u user] [-p passwd]] <process name | process id>
157. PUSHD ==> Save and then change the current directory•

Syntax
      PUSHD [drive]path

     PUSHD
[Q]
158. QGREP   ==> Search file(s) for lines that match a given pattern
Syntax
      QGREP [options] [-e string] [-f file] [-i file] [strings] [files]
159. Query Process ==> Display processes (TS/Remote Desktop)
Syntax
      QUERY PROCESS * [/server:ServerName]

      QUERY PROCESS ProgramName [/server:ServerName]

      QUERY PROCESS ProcessID [/server:ServerName]

      QUERY PROCESS SessionName [/server:ServerName]

      QUERY PROCESS /id:nn [/server:ServerName]
160. Query Session  ==>  Display all sessions (TS/Remote Desktop)
Syntax
      QUERY SESSION [/server:ServerName]
         [/mode] [/flow] [/connect] [/counter]

      QUERY SESSION UserName [/server:ServerName]
         [/mode] [/flow] [/connect] [/counter]

      QUERY SESSION [SessionName | SessionID] [/server:ServerName]
         [/mode] [/flow] [/connect] [/counter]
161. Query TermServer ==> List all servers (TS/Remote Desktop)
Syntax
      QUERY TERMSERVER [ServerName] [/domain:Domain] [/address] [/continue]
162. Query User  ==>     Display user sessions (TS/Remote Desktop)
Syntax
      QUERY USER [/server:ServerName]

      QUERY USER UserName [/server:ServerName]

      QUERY USER [SessionName | SessionID] [/server:ServerName]

                                                               [R]
163. RASDIAL ==> Manage RAS connections

164. RASPHONE  ==> Manage RAS connections

165. RECOVER ==> Recover a damaged file from a defective disk
Syntax
      RECOVER [drive:][path]filename
166. REG    ==>  Registry: Read, Set, Export, Delete keys and values
Syntax:

   REG QUERY [ROOT\]RegKey /v ValueName [/s]
   REG QUERY [ROOT\]RegKey /ve  --This returns the (default) value
167. REGEDIT ==> Import or export registry settings
Syntax
      Export the Registry (all HKLM plus current user)
      REGEDIT /E pathname
168.REGSVR32 ==> Register or unregister a DLL
Syntax
      REGSVR32 [/U] [/S] [/N] /I:[CommandLine] DLL_Name
169. REGINI ==>  Change Registry Permissions
Syntax
      REGINI [-m \\machinename] [-i n]
         [-o outputWidth][-b] textFiles...

      REGINI [-h hivefile hiveroot] [-i n]
         [-o outputWidth][-b] textFiles...
170. REM   ==>   Record comments (remarks) in a batch file•

171. REN   ==>   Rename a file or files•

172. REPLACE  ==> Replace or update one file with another
Syntax
      REPLACE Source_PathName Destination_path [/A] [/P] [/R] [/W]

      REPLACE Source_PathName Destination_path [/P] [/R] [/S] [/W] [/U]
173. Reset Session ==> Delete a Remote Desktop Session
Syntax
      RESET SESSION {SessionName | SessionID} [/server:ServerName] [/v]
174. RD ==> Delete folder(s)•
Syntax
      RD pathname
      RD /S pathname
      RD /S /Q pathname
175. RMTSHARE  ==> Share a folder or a printer
Syntax
  Display all shares
      RMTSHARE \\server

  Display details of a specific share
      RMTSHARE \\server\sharename

  Share a Folder 
      RMTSHARE \\server\sharename=drive:path [options]

  Share a Printer 
      RMTSHARE \\server\sharename=printername /PRINTER [options]

  Edit an existing SHARE
      RMTSHARE \\server\sharename [options]

  Delete a SHARE
      RMTSHARE \\server\sharename /DELETE
176. ROBOCOPY ==> Robust File and Folder Copy
Syntax
      ROBOCOPY Source_folder Destination_folder [files_to_copy] [options]
177. ROUTE ==> Manipulate network routing tables
Syntax

   Display route details:
      ROUTE [-f] PRINT [destination_host] [MASK subnet_mask_value] [gateway] 
         [METRIC metric] [IF interface_no.]

   Add a route:
      ROUTE [-f] [-p] ADD [destination_host] [MASK subnet_mask_value] [gateway] 
         [METRIC metric] [IF interface_no.]

   Change a route:
      ROUTE [-f] CHANGE [destination_host] [MASK subnet_mask_value] [gateway] 
         [METRIC metric] [IF interface_no.]

   Delete a route:
      ROUTE [-f] DELETE [destination_host] [MASK subnet_mask_value] [gateway] 
         [METRIC metric] [IF interface_no.] 
178. RUN ==> Start | RUN commands

179. RUNAS  ==>  Execute a program under a different user account
Syntax
      RUNAS [/profile] [/env] [/netonly] /user:user Program
180. RUNDLL32 ==> Run a DLL command (add/remove print connections)
Syntax
       RUNDLL32.EXE dll_name,EntryPoint [options]
                                                                [S]
181. SC   ==>    Service Control
Syntax
      SC [\\server] [command] [service_name] [Options]
182. SCHTASKS ==> Schedule a command to run at a specific time
Syntax:

   SCHTASKS /Create [Connect_Options] Create_Options /TN taskname

   SCHTASKS /Delete [Connect_Options] /TN taskname [/F]

   SCHTASKS /Query  [Connect_Options] [/FO format] [/NH] [/V]

   SCHTASKS /Run [Connect_Options] /TN taskname

   SCHTASKS /End [Connect_Options] /TN taskname

   SCHTASKS /Change [Connect_Options] {[/RU username] [/RP password] [/TR taskrun]} /TN taskname
183. SCLIST ==>  Display Services
Syntax
      SCLIST [options] [ComputerName]
184. SET ==> Display, set, or remove session environment variables•
Syntax
      SET variable
      SET variable=string
      SET /A "variable=expression"
      SET "variable="
      SET /P variable=[promptString]
      SET "
185. SETLOCAL ==> Control the visibility of environment variables•
Syntax
      SETLOCAL

      SETLOCAL EnableDelayedExpansion

      SETLOCAL EnableExtensions | DisableExtensions
186. SETX ==> Set environment variables
Syntax


   SETX [/s Computer [Credentials]] Variable Value [/m]

   SETX [/s Computer [Credentials]] [Variable] /k Path [/m]

   SETX [/s Computer [Credentials]] /f FileName {[Variable] {/a X,Y | /r X,Y "String"}
        [/m] | /x} [/d Delimiters]
187. SFC ==> System File Checker 
Syntax
      Sfc [/Scannow] [/Scanonce] [/Scanboot] [/Revert] [/Purgecache] [/Cachesize=x]
188. SHARE ==>   List or edit a file share or print share
Syntax:
 List Shares
        Share.vbs /L [/S <server>] [/U <username>] [/W <password>] [/O <outputfile>]
                
 Create a Share
        Share.vbs /C /N <name> /P <path> [/T <type>] [/V <description>]
                         [/S <server>] [/U <username>] [/W <password>] [/O <outputfile>]
 Delete a Share
        Share.vbs /D /N <name>
                         [/S <server>] [/U <username>] [/W <password>] [/O <outputfile>]
189. ShellRunAs ==> Run a command under a different user account
Syntax
      shellrunas [/netonly] program arguments
      shellrunas /reg [/quiet]
      shellrunas /regnetonly [/quiet] 
      shellrunas unreg
190. SHIFT ==> Shift the position of batch file parameters•
Syntax
      SHIFT [/n]
191. SHORTCUT ==> Create a windows shortcut (.LNK file)
Syntax
      SHORTCUT [options]
192. SHOWGRPS ==> List the Workgroups a user has joined
Syntax
      SHOWGRPS domain\username

      SHOWGRPS username
193. SHOWMBRS ==> List the Users who are members of a Workgroup
Syntax
      SHOWMBRS domain\Workgroup
   
      SHOWMBRS Workgroup
194. SHUTDOWN ==> Shutdown the computer
Syntax
      SHUTDOWN [logoff_option]  [/m \\Computer] [options]
195. SLEEP  ==>  Wait for x seconds
Syntax
      SLEEP time
196. SLMGR  ==>  Software Licensing Management (Vista/2008)
Syntax
      slmgr [MachineName [Username Password]] [Option]
197. SOON   ==>  Schedule a command to run in the near future
Syntax
      SOON [\\computername] delay [/interactive] "command"
      SOON /i:[on|off]
198. SORT ==> Sort input
Syntax
      SORT [options] 
199. START  ==>  Start a program, command or batch file•
Syntax
      START "title" [/Dpath] [options] "command" [parameters]
200. SU ==> Switch User
Syntax
      SU  "[cmdline]" [domain] [[Winsta\]Desktop] [options]
201. SUBINACL ==> Edit file and folder Permissions, Ownership and Domain
Syntax
      SUBINACL [/noverbose] /object_type object_name [/action=parameter] [/help]
202. SUBST ==>   Associate a path with a drive letter
Syntax
      SUBST drive_letter: path
   
      SUBST 
   
      SUBST drive_letter: /D
203. SYSTEMINFO ==> List system configuration
Syntax
      SYSTEMINFO [/S system [/U username [/P [password]]] ]
                    [/FO format] [/NH]

                  [T]
204. TAKEOWN ==> Take ownership of a file
Syntax
      TAKEOWN [/s Computer [/u [Domain\]UserName [/p [Password]]]]
         /f FileName [/a] [/r [/d {Y|N}]]
205. TASKLIST ==> List running applications and services
Syntax
      tasklist options
206. TASKKILL ==> Remove a running process from memory
Syntax
      TASKKILL [/S system [/U username [/P [password]]]]
         { [/FI filter] [/PID processid | /IM imagename] } [/F] [/T]
207. TIME   ==>  Display or set the system time•
Syntax
      TIME [new_time]

      TIME

      TIME /T
208. TIMEOUT ==> Delay processing of a batch file
Syntax
      TIMEOUT delay
209. TITLE  ==>  Set the window title for a CMD.EXE session•
Syntax 
      TITLE [string]
210. TLIST ==> Task list with full path
Syntax
      TLIST
      TLIST -t
      TLIST pid
      TLIST -t pid
      TLIST pattern
      TLIST -t pattern
211. TOUCH  ==>  Change file timestamps    
Syntax
      TOUCH [option]... files ...
212. TRACERT ==> Trace route to a remote host
Syntax
      TRACERT [options] target_name
213. TREE ==> Graphical display of folder structure

214. TSSHUTDN ==> Remotely shut down or reboot a terminal server
Syntax
      TSSHUTDN [WaitTime] [/server:ServerName] [/reboot] [/powerdown]
         [/delay:LogOffDelay] [/v]
215. TYPE  ==>   Display the contents of a text file•
Syntax
      TYPE [drive:]pathname(s)
216. TypePerf ==> Write performance data to a log file
Syntax
      typeperf counter [counter ...] [options]

      typeperf -cf filename  [options]

      typeperf -q [object] [options]

      typeperf -qx [object] [options]

                    [U]
217. USRSTAT ==> List domain usernames and last login



                   [V]
218. VER   ==>   Display version information•
Syntax

     VER
219. VERIFY ==>  Verify that files have been saved•
Syntax
      VERIFY [ON | OFF]
220. VOL   ==>   Display a disk label•
Syntax
      VOL [drive:]
[W]
221. WAITFOR ==> Wait for or send a signal
Syntax
   Wait for a signal:
      waitfor [/t Timeout] SignalName

   Send a signal:
      waitfor [/s Computer [/u [Domain\]User [/p [Password]]]] /si SignalName
222. WHERE   ==> Locate and display files in a directory tree
Syntax
      WHERE [/r Dir] [/q] [/f] [/t] Pattern ...

      WHERE [/q] [/f] [/t] [$ENV:Pattern
223. WHOAMI  ==> Output the current UserName and domain
Syntax
      whoami [/upn | /fqdn | /logonid]

      whoami {[/user] [/groups] [/priv]} [/fo Format] [/nh]

      whoami /all [/fo Format] [/nh]
224. WINDIFF ==> Compare the contents of two files or sets of files
Syntax
      windiff [path1] [path2]
225. WINMSDP ==> Windows system report
Syntax
      WINMSDP option
226. WINRM   ==> Windows Remote Management
Syntax
      winrm g[et] | s[et] | c[reate] | d[elete] | e[numerate] | 
            i[nvoke] |  id[entify] | quickconfig |  configSDDL |  helpmsg
227. WINRS  ==>  Windows Remote Shell
Syntax
      winrs [-/SWITCH[:VALUE]] COMMAND
228. WMIC ==> WMI Commands
Syntax
   Retrieve information about <Alias>:
      WMIC [global_switches] [/locale:ms_409] <alias> [options] [format]
229. WUAUCLT ==> Windows Update

Syntax
      wuauclt Options
[X] 230. XCACLS ==> Change file and folder permissions
Syntax
      XCACLS filename [options]

      XCACLS filename
231. XCOPY  ==>  Copy files and folders
Syntax
      XCOPY source [destination] [options]

No comments:

Post a Comment