Logo Passei Direto
Buscar
Material
páginas com resultados encontrados.
páginas com resultados encontrados.

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Prévia do material em texto

An A-Z Index of the Windows CMD command line
 ADDUSERS Add or list users to/from a CSV file
 ADmodcmd Active Directory Bulk Modify
 ARP Address Resolution Protocol
 ASSOC Change file extension associations•
 ASSOCIAT One step files association
 AT Schedule a command to run at a specific time
 ATTRIB Change file attributes
b
 BCDBOOT Create or repair a system partition
 BCDEDIT Manage Boot Configuration Data
 BITSADMIN Background Intelligent Transfer Service
 BOOTCFG Edit Windows boot settings
 BROWSTAT Get domain, browser and PDC info
c
 CACLS Change file permissions
 CALL Call one batch program from another•
 CERTREQ Request certificate from a certification 
 authority
 CERTUTIL Utility for certification authority (CA) files and services
 CD Change Directory - move to a specific Folder•
 CHANGE Change Terminal Server Session properties
 CHKDSK Check Disk - check and repair disk problems
 CHKNTFS Check the NTFS file system
 CHOICE Accept keyboard input to a batch file
 CIPHER Encrypt or Decrypt files/folders
 CleanMgr Automated cleanup of Temp files, recycle bin
 CLEARMEM Clear memory leaks
 CLIP Copy STDIN to the Windows clipboard
 CLS Clear the screen•
 CLUSTER Windows Clustering
 CMD Start a new CMD shell
 CMDKEY Manage stored usernames/passwords
 COLOR Change colors of the CMD window•
 COMP Compare the contents of two files or sets of files
 COMPACT Compress files or folders on an NTFS partition
 COMPRESS Compress individual files on an NTFS partition
 CON2PRT Connect or disconnect a Printer
 CONVERT Convert a FAT drive to NTFS
 COPY Copy one or more files to another location•
 CSCcmd Client-side caching (Offline Files)
 CSVDE Import or Export Active Directory data 
d
 DATE Display or set the date•
 DEFRAG Defragment hard drive
 DEL Delete one or more files•
 DELPROF Delete user profiles
 DELTREE Delete a folder and all subfolders
 DevCon Device Manager Command Line Utility 
 DIR Display a list of files and folders•
 DIRUSE Display disk usage
 DISKPART Disk Administration
 DISKSHADOW Volume Shadow Copy Service
 DNSSTAT DNS Statistics
 DOSKEY Edit command line, recall commands, and create 
macros
 DriverQuery Display installed device drivers
 DSACLs Active Directory ACLs
 DSAdd Add items to active directory (user group computer) 
 DSGet View items in active directory (user group computer)
 DSQuery Search for items in active directory (user group computer)
 DSMod Modify items in active directory (user group 
computer)
 DSMove Move an Active directory Object
 DSRM Remove items from Active Directory
e
 ECHO Display message on screen•
 ENDLOCAL End localisation of environment changes in a batch file•
 ERASE Delete one or more files•
 EVENTCREATE Add a message to the Windows event log
 EXIT Quit the current script/routine and set an error 
level•
 EXPAND Uncompress files
 EXTRACT Uncompress CAB files
f
 FC Compare two files
 FIND Search for a text string in a file
 FINDSTR Search for strings in files
 FOR /F Loop command: against a set of files•
 FOR /F Loop command: against the results of another 
command•
 FOR Loop command: all options Files,Directory, List•
 FORFILES Batch process multiple files
 FORMAT Format a disk
 FREEDISK Check free disk space (in bytes)
 FSUTIL File and Volume utilities
 FTP File Transfer Protocol
 FTYPE File extension file type associations•
G 
 GETMAC Display the Media Access Control (MAC) address
 GLOBAL Display membership of global groups
 GOTO Direct a batch program to jump to a labeled line•
 GPRESULT Display Resultant Set of Policy information
 GPUPDATE Update Group Policy settings
h
 HELP Online Help
i
 iCACLS Change file and folder permissions
 IF Conditionally perform a command•
 IFMEMBER Is the current user a member of a Workgroup
 IPCONFIG Configure IP
k
 KILL Remove a program from memory
l
 LABEL Edit a disk label
 LOCAL Display membership of local groups
 LOGEVENT Write text to the event viewer
 LOGMAN Manage Performance Monitor
 LOGOFF Log a user off
 LOGTIME Log the date and time in a file
m
 MAPISEND Send email from the command line
 MBSAcli Baseline Security Analyzer
 MEM Display memory usage
 MD Create new folders•
 MKLINK Create a symbolic link (linkd) •
 MODE Configure a system device
 MORE Display output, one screen at a time
 MOUNTVOL Manage a volume mount point
 MOVE Move files from one folder to another•
 MOVEUSER Move a user from one domain to another
 MSG Send a message
 MSIEXEC Microsoft Windows Installer
 MSINFO32 System Information
 MSTSC Terminal Server Connection (Remote Desktop Protocol)
 MV Copy in-use files
n
 NET Manage network resources
 NETDOM Domain Manager
 NETSH Configure Network Interfaces, Windows Firewall & Remote 
access
 NETSVC Command-line Service Controller
NBTSTAT Display networking statistics (NetBIOS over TCP/IP)
 NETSTAT Display networking statistics (TCP/IP)
 NOW Display the current Date and Time 
 NSLOOKUP Name server lookup
 NTBACKUP Backup folders to tape
 NTRIGHTS Edit user account rights
o
 OPENFILES Query or display open files
p
PATH Display or set a search path for executable files•
PATHPING Trace route plus network latency and packet loss
PAUSE Suspend processing of a batch file and display a message•
 PERMS Show permissions for a user
 PERFMON Performance Monitor
 PING Test a network connection
POPD Return to a previous directory saved by PUSHD•
 PORTQRY Display the status of ports and services
 POWERCFG Configure power settings
 PRINT Print a text file
 PRINTBRM Print queue Backup/Recovery
 PRNCNFG Display, configure or rename a printer
 PRNMNGR Add, delete, list printers set the default 
printer
 PROMPT Change the command prompt•
 PsExec Execute process remotely
 PsFile Show files opened remotely
 PsGetSid Display the SID of a computer or a user
 PsInfo List information about a system
 PsKill Kill processes by name or process ID
 PsList List detailed information about processes
 PsLoggedOn Who's logged on (locally or via resource sharing)
 PsLogList Event log records
 PsPasswd Change account password
 PsPing Measure network performance
 PsService View and control services
 PsShutdown Shutdown or reboot a computer
 PsSuspend Suspend processes
PUSHD Save and then change the current directory•
q
 QGREP Search file(s) for lines that match a given 
pattern
 Query Process Display processes (TS/Remote Desktop)
 Query Session Display all sessions (TS/Remote 
Desktop)
 Query TermServer List all servers (TS/Remote Desktop)
 Query User Display user sessions (TS/Remote Desktop)
http://ss64.com/nt/addusers.html
http://ss64.com/nt/query-user.html
http://ss64.com/nt/query-termserver.html
http://ss64.com/nt/query-session.html
http://ss64.com/nt/query-process.html
http://ss64.com/nt/qgrep.html
http://ss64.com/nt/pushd.html
http://ss64.com/nt/pssuspend.html
http://ss64.com/nt/psshutdown.html
http://ss64.com/nt/psservice.html
http://ss64.com/nt/psping.html
http://ss64.com/nt/pspasswd.html
http://ss64.com/nt/psloglist.html
http://ss64.com/nt/psloggedon.html
http://ss64.com/nt/pslist.html
http://ss64.com/nt/pskill.html
http://ss64.com/nt/psinfo.html
http://ss64.com/nt/psgetsid.html
http://ss64.com/nt/psfile.html
http://ss64.com/nt/psexec.html
http://ss64.com/nt/prompt.html
http://ss64.com/nt/prnmngr.html
http://ss64.com/nt/prncnfg.html
http://ss64.com/nt/printbrm.html
http://ss64.com/nt/print.html
http://ss64.com/nt/powercfg.html
http://ss64.com/nt/portqry.html
http://ss64.com/nt/popd.htmlhttp://ss64.com/nt/ping.html
http://ss64.com/nt/monitor.html
http://ss64.com/nt/perms.html
http://ss64.com/nt/pause.html
http://ss64.com/nt/pathping.html
http://ss64.com/nt/path.html
http://ss64.com/nt/openfiles.html
http://ss64.com/nt/ntrights.html
http://ss64.com/nt/ntbackup.html
http://ss64.com/nt/nslookup.html
http://ss64.com/nt/now.html
http://ss64.com/nt/netstat.html
http://ss64.com/nt/nbtstat.html
http://ss64.com/nt/netsvc.html
http://ss64.com/nt/netsh.html
http://ss64.com/nt/netdom.html
http://ss64.com/nt/net.html
http://ss64.com/nt/mv.html
http://ss64.com/nt/mstsc.html
http://ss64.com/nt/msinfo32.html
http://ss64.com/nt/msiexec.html
http://ss64.com/nt/msg.html
http://ss64.com/nt/moveuser.html
http://ss64.com/nt/move.html
http://ss64.com/nt/mountvol.html
http://ss64.com/nt/more.html
http://ss64.com/nt/mode.html
http://ss64.com/nt/mklink.html
http://ss64.com/nt/md.html
http://ss64.com/nt/mem.html
http://ss64.com/nt/mbsacli.html
http://ss64.com/nt/mapisend.html
http://ss64.com/nt/logtime.html
http://ss64.com/nt/logoff.html
http://ss64.com/nt/logman.html
http://ss64.com/nt/logevent.html
http://ss64.com/nt/local.html
http://ss64.com/nt/label.html
http://ss64.com/nt/kill.html
http://ss64.com/nt/ipconfig.html
http://ss64.com/nt/ifmember.html
http://ss64.com/nt/if.html
http://ss64.com/nt/icacls.html
http://ss64.com/nt/help.html
http://ss64.com/nt/gpupdate.html
http://ss64.com/nt/gpresult.html
http://ss64.com/nt/goto.html
http://ss64.com/nt/global.html
http://ss64.com/nt/getmac.html
http://ss64.com/nt/ftype.html
http://ss64.com/nt/ftp.html
http://ss64.com/nt/fsutil.html
http://ss64.com/nt/format.html
http://ss64.com/nt/forfiles.html
http://ss64.com/nt/for.html
http://ss64.com/nt/for_cmd.html
http://ss64.com/nt/for_f.html
http://ss64.com/nt/findstr.html
http://ss64.com/nt/find.html
http://ss64.com/nt/fc.html
http://ss64.com/nt/extract.html
http://ss64.com/nt/expand.html
http://ss64.com/nt/exit.html
http://ss64.com/nt/eventcreate.html
http://ss64.com/nt/del.html
http://ss64.com/nt/endlocal.html
http://ss64.com/nt/echo.html
http://ss64.com/nt/dsrm.html
http://ss64.com/nt/dsmove.html
http://ss64.com/nt/dsmod-computer.html
http://ss64.com/nt/dsmod-group.html
http://ss64.com/nt/dsmod-user.html
http://ss64.com/nt/dsmod.html
http://ss64.com/nt/dsquery-computer.html
http://ss64.com/nt/dsquery-group.html
http://ss64.com/nt/dsquery-user.html
http://ss64.com/nt/dsquery.html
http://ss64.com/nt/dsget-computer.html
http://ss64.com/nt/dsget-group.html
http://ss64.com/nt/dsget-user.html
http://ss64.com/nt/dsget.html
http://ss64.com/nt/dsadd-computer.html
http://ss64.com/nt/dsadd-group.html
http://ss64.com/nt/dsadd-user.html
http://ss64.com/nt/dsadd.html
http://ss64.com/nt/dsacls.html
http://ss64.com/nt/driverquery.html
http://ss64.com/nt/doskey.html
http://ss64.com/nt/diskshadow.html
http://ss64.com/nt/diskpart.html
http://ss64.com/nt/diruse.html
http://ss64.com/nt/dir.html
http://ss64.com/nt/devcon.html
http://ss64.com/nt/del.html
http://ss64.com/nt/delprof.html
http://ss64.com/nt/del.html
http://ss64.com/nt/defrag.html
http://ss64.com/nt/date.html
http://ss64.com/nt/csvde.html
http://ss64.com/nt/csccmd.html
http://ss64.com/nt/copy.html
http://ss64.com/nt/convert.html
http://ss64.com/nt/con2prt.html
http://ss64.com/nt/comp.html
http://ss64.com/nt/color.html
http://ss64.com/nt/cmdkey.html
http://ss64.com/nt/cmd.html
http://ss64.com/nt/clip.html
http://ss64.com/nt/cleanmgr.html
http://ss64.com/nt/cipher.html
http://ss64.com/nt/choice.html
http://ss64.com/nt/chkntfs.html
http://ss64.com/nt/chkdsk.html
http://ss64.com/nt/change.html
http://ss64.com/nt/cd.html
http://ss64.com/nt/certutil.html
http://ss64.com/nt/certreq.html
http://ss64.com/nt/call.html
http://ss64.com/nt/cacls.html
http://ss64.com/nt/browstat.html
http://ss64.com/nt/bootcfg.html
http://ss64.com/nt/bitsadmin.html
http://ss64.com/nt/bcdedit.html
http://ss64.com/nt/bcdboot.html
http://ss64.com/nt/attrib.html
http://ss64.com/nt/at.html
http://ss64.com/nt/associate.html
http://ss64.com/nt/assoc.html
http://ss64.com/nt/arp.html
http://ss64.com/nt/admodcmd.html
r
 RASDIAL Manage RAS connections
 RASPHONE Manage RAS connections
RECOVER Recover a damaged file from a defective disk
REG Registry: Read, Set, Export, Delete keys and 
values
 REGEDIT Import or export registry settings
 REGSVR32 Register or unregister a DLL
 REGINI Change Registry Permissions
REM Record comments (remarks) in a batch file•
 REN Rename a file or files•
 REPLACE Replace or update one file with another
 Reset Session Delete a Remote Desktop Session
 RD Delete folder(s)•
 RMTSHARE Share a folder or a printer
 ROBOCOPY Robust File and Folder Copy
 ROUTE Manipulate network routing tables
 RUN Start | RUN commands
 RUNAS Execute a program under a different user account
RUNDLL32 Run a DLL command (add/remove print connections)
s
 SC Service Control
SCHTASKS Schedule a command to run at a specific time
 SCLIST Display Services
SET Display, set, or remove session environment variables•
SETLOCAL Control the visibility of environment variables•
 SETX Set environment variables
 SFC System File Checker 
 SHARE List or edit a file share or print share
ShellRunAs Run a command under a different user account
SHIFT Shift the position of batch file parameters•
 SHORTCUT Create a windows shortcut (.LNK file)
 SHOWGRPS List the Workgroups a user has joined
SHOWMBRS List the Users who are members of a Workgroup
 SHUTDOWN Shutdown the computer
 SLEEP Wait for x seconds
SLMGR Software Licensing Management (Vista/2008)
SOON Schedule a command to run in the near future
 SORT Sort input
 START Start a program, command or batch file•
 SU Switch User
 SUBINACL Edit file and folder Permissions, Ownership and 
Domain
 SUBST Associate a path with a drive letter
 SYSTEMINFO List system configuration
t
 TAKEOWN Take ownership of a file
 TASKLIST List running applications and services
 TASKKILL Remove a running process from memory
 TIME Display or set the system time•
 TIMEOUT Delay processing of a batch file
 TITLE Set the window title for a CMD.EXE session•
 TLIST Task list with full path
 TOUCH Change file timestamps 
 TRACERT Trace route to a remote host
 TREE Graphical display of folder structure
TSSHUTDN Remotely shut down or reboot a terminal server
 TYPE Display the contents of a text file•
 TypePerf Write performance data to a log file
u
 USRSTAT List domain usernames and last login
v
 VER Display version information•
 VERIFY Verify that files have been saved•
 VOL Display a disk label•
w
 WAITFOR Wait for or send a signal
WHERE Locate and display files in a directory tree
 WHOAMI Output the current Username and domain
 WINDIFF Compare the contents of two files or sets of files
 WINMSDP Windows system report
 WINRM Windows Remote Management
 WINRS Windows Remote Shell
 WMIC WMI Commands
 WUAUCLT Windows Update
x
 XCACLS Change file and folder permissions
 XCOPY Copy files and folders
 :: Comment / Remark•
Commands marked • are Internal commands only available within the CMD 
shell.
All other commands (not marked with •) are external commands.
External commands may be used under the CMD shell, PowerShell, or directly 
from START-RUN.
© Copyright SS64.com 1999-2013
Some rights reserved
A categorized list of Windows CMD commands
Active Directory
 ADmodcmd Active Directory Bulk Modify
 CSVDE Import or Export Active Directory data 
 DSACLs Active Directory ACLs
 DSAdd Add items to active directory (user group computer) 
 DSGet View items in active directory (user group computer)
 DSQuery Search for items in active directory (user group computer)
 DSMod Modify items in active directory (user group 
computer)
 DSMove Move an Active directory Object
 DSRM Remove items from Active DirectoryBatch Files
 CALL Call one batch program from another•
 CHOICE Accept keyboard input to a batch file
 CLIP Copy STDIN to the Windows clipboard
 CLS Clear the screen•
 CMD Start a new CMD shell
 COLOR Change colors of the CMD window•
 DOSKEY Edit command line, recall commands, and create 
macros
 ECHO Display message on screen•
 ENDLOCAL End localization of environment changes in a batch file•
 EVENTCREATE Add a message to the Windows event log
 EXIT Quit the current script/routine and set an error level•
 FOR /F Loop command: against a set of files•
 FOR /F Loop command: against the results of another 
command•
 FOR Loop command: all options Files, Directory, List•
 GOTO Direct a batch program to jump to a labelled line•
 IF Conditionally perform a command•
 IFMEMBER Is the current user a member of a Workgroup
 LOGEVENT Write text to the event viewer
 LOGTIME Log the date and time in a file
 MAPISEND Send email from the command line
 MORE Display output, one screen at a time
PAUSE Suspend processing of a batch file and display a message•
 PROMPT Change the command prompt•
 REM Record comments (remarks) in a batch file•
 RUN Start | RUN commands
 RUNAS Execute a program under a different user 
account
 SET Display, set, or remove session environment 
variables•
 SETLOCAL Control the visibility of environment 
variables•
 SETX Set environment variables
 SORT Sort input
 SHIFT Shift the position of batch file parameters•
 SLEEP Wait for x seconds
 START Start a program, command or batch file•
 TIMEOUT Delay processing of a batch file
 TITLE Set the window title for a CMD.EXE session•
 WAITFOR Wait for or send a signal
 WMIC WMI Commands
 :: Comment / Remark•
Disk Management
 BOOTCFG Edit Windows boot settings
 BCDBOOT Create or repair a system partition
 BCDEDIT Manage Boot Configuration Data
 CONVERT Convert a FAT drive to NTFS
 CHKDSK Check Disk - check and repair disk problems
 CHKNTFS Check the NTFS file system
 DEFRAG Defragment hard drive
 DISKPART Disk Administration
 DISKSHADOW Volume Shadow Copy Service
 DriverQuery Display installed device drivers
 FORMAT Format a disk
 FREEDISK Check free disk space (in bytes)
 LABEL Edit a disk label
 MOUNTVOL Manage a volume mount point
 NTBACKUP Backup folders to tape
 SFC System File Checker
 VOL Display a disk label•
Files and Folders
 ASSOC Change file extension associations•
 ASSOCIAT One step file association
 ATTRIB Change file attributes
 BITSADMIN Background Intelligent Transfer Service
 CACLS Change file permissions
 CD Change Directory - move to a specific Folder•
 CIPHER Encrypt or Decrypt files/folders
 COMP Compare the contents of two files or sets of 
files
 COMPACT Compress files or folders on an NTFS partition
 COMPRESS Compress individual files on an NTFS partition
 COPY Copy one or more files to another location•
http://ss64.com/nt/copy.html
http://ss64.com/nt/comp.html
http://ss64.com/nt/cipher.html
http://ss64.com/nt/cd.html
http://ss64.com/nt/cacls.html
http://ss64.com/nt/bitsadmin.html
http://ss64.com/nt/attrib.html
http://ss64.com/nt/associate.html
http://ss64.com/nt/assoc.html
http://ss64.com/nt/vol.html
http://ss64.com/nt/sfc.html
http://ss64.com/nt/ntbackup.html
http://ss64.com/nt/mountvol.html
http://ss64.com/nt/label.html
http://ss64.com/nt/format.html
http://ss64.com/nt/driverquery.html
http://ss64.com/nt/diskshadow.html
http://ss64.com/nt/diskpart.html
http://ss64.com/nt/defrag.html
http://ss64.com/nt/chkntfs.html
http://ss64.com/nt/chkdsk.html
http://ss64.com/nt/bcdedit.html
http://ss64.com/nt/bcdboot.html
http://ss64.com/nt/bootcfg.html
http://ss64.com/nt/rem.html
http://ss64.com/nt/wmic.html
http://ss64.com/nt/waitfor.html
http://ss64.com/nt/title.html
http://ss64.com/nt/timeout.html
http://ss64.com/nt/start.html
http://ss64.com/nt/sleep.html
http://ss64.com/nt/shift.html
http://ss64.com/nt/sort.html
http://ss64.com/nt/setx.html
http://ss64.com/nt/setlocal.html
http://ss64.com/nt/set.html
http://ss64.com/nt/runas.html
http://ss64.com/nt/run.html
http://ss64.com/nt/run.html
http://ss64.com/nt/rem.html
http://ss64.com/nt/prompt.html
http://ss64.com/nt/pause.html
http://ss64.com/nt/more.html
http://ss64.com/nt/mapisend.html
http://ss64.com/nt/logtime.html
http://ss64.com/nt/logevent.html
http://ss64.com/nt/ifmember.html
http://ss64.com/nt/if.html
http://ss64.com/nt/goto.html
http://ss64.com/nt/for.html
http://ss64.com/nt/for_cmd.html
http://ss64.com/nt/for_f.html
http://ss64.com/nt/exit.html
http://ss64.com/nt/eventcreate.html
http://ss64.com/nt/endlocal.html
http://ss64.com/nt/echo.html
http://ss64.com/nt/doskey.html
http://ss64.com/nt/color.html
http://ss64.com/nt/cmd.html
http://ss64.com/nt/clip.html
http://ss64.com/nt/choice.html
http://ss64.com/nt/call.html
http://ss64.com/nt/dsrm.html
http://ss64.com/nt/dsmove.html
http://ss64.com/nt/dsmod-computer.html
http://ss64.com/nt/dsmod-group.html
http://ss64.com/nt/dsmod-user.html
http://ss64.com/nt/dsmod.html
http://ss64.com/nt/dsquery-computer.html
http://ss64.com/nt/dsquery-group.html
http://ss64.com/nt/dsquery-user.html
http://ss64.com/nt/dsquery.html
http://ss64.com/nt/dsget-computer.html
http://ss64.com/nt/dsget-group.html
http://ss64.com/nt/dsget-user.html
http://ss64.com/nt/dsget.html
http://ss64.com/nt/dsadd-computer.html
http://ss64.com/nt/dsadd-group.html
http://ss64.com/nt/dsadd-user.html
http://ss64.com/nt/dsadd.html
http://ss64.com/nt/dsacls.html
http://ss64.com/nt/csvde.html
http://ss64.com/nt/admodcmd.html
http://ss64.com/
http://ss64.com/nt/syntax-run-commands.html
http://ss64.com/ps/
http://ss64.com/nt/rem.html
http://ss64.com/nt/xcopy.html
http://ss64.com/nt/xcacls.html
http://ss64.com/nt/wuauclt.html
http://ss64.com/nt/wmic.html
http://ss64.com/nt/winrs.html
http://ss64.com/nt/winrm.html
http://ss64.com/nt/winmsdp.html
http://ss64.com/nt/windiff.html
http://ss64.com/nt/whoami.html
http://ss64.com/nt/where.html
http://ss64.com/nt/waitfor.html
http://ss64.com/nt/vol.html
http://ss64.com/nt/verify.html
http://ss64.com/nt/ver.html
http://ss64.com/nt/typeperf.html
http://ss64.com/nt/type.html
http://ss64.com/nt/tsshutdn.html
http://ss64.com/nt/tracert.html
http://ss64.com/nt/touch.html
http://ss64.com/nt/tlist.html
http://ss64.com/nt/title.html
http://ss64.com/nt/timeout.html
http://ss64.com/nt/time.html
http://ss64.com/nt/taskkill.html
http://ss64.com/nt/tasklist.html
http://ss64.com/nt/takeown.html
http://ss64.com/nt/systeminfo.html
http://ss64.com/nt/subst.html
http://ss64.com/nt/subinacl.html
http://ss64.com/nt/su.html
http://ss64.com/nt/start.html
http://ss64.com/nt/sort.html
http://ss64.com/nt/soon.html
http://ss64.com/nt/slmgr.html
http://ss64.com/nt/sleep.html
http://ss64.com/nt/shutdown.html
http://ss64.com/nt/showmbrs.html
http://ss64.com/nt/showgrps.html
http://ss64.com/nt/shortcut.html
http://ss64.com/nt/shift.html
http://ss64.com/nt/shellrunas.html
http://ss64.com/nt/share.html
http://ss64.com/nt/sfc.html
http://ss64.com/nt/setx.html
http://ss64.com/nt/setlocal.html
http://ss64.com/nt/set.html
http://ss64.com/nt/sclist.html
http://ss64.com/nt/schtasks.html
http://ss64.com/nt/sc.html
http://ss64.com/nt/rundll32.html
http://ss64.com/nt/runas.html
http://ss64.com/nt/run.html
http://ss64.com/nt/run.html
http://ss64.com/nt/route.html
http://ss64.com/nt/robocopy.html
http://ss64.com/nt/rmtshare.html
http://ss64.com/nt/rd.html
http://ss64.com/nt/reset-session.html
http://ss64.com/nt/replace.html
http://ss64.com/nt/ren.html
http://ss64.com/nt/rem.html
http://ss64.com/nt/regini.html
http://ss64.com/nt/regsvr32.html
http://ss64.com/nt/regedit.html
http://ss64.com/nt/reg.html
http://ss64.com/nt/recover.html
http://ss64.com/nt/rasphone.html
http://ss64.com/nt/rasdial.html
 CSCcmd Client-side caching (Offline Files)
 DEL Delete one or more files•
 DELTREEDelete a folder and all subfolders
 DIR Display a list of files and folders•
 ERASE Delete one or more files•
 EXPAND Uncompress files
 EXTRACT Uncompress CAB files
 FC Compare two files
 FIND Search for a text string in a file
 FINDSTR Search for strings in files
 FORFILES Batch process multiple files
 FSUTIL File and Volume utilities
 FTP File Transfer Protocol
 FTYPE File extension file type associations•
 iCACLS Change file and folder permissions
 MD Create new folders•
 MOVE Move files from one folder to another•
 MKLINK Create a symbolic link (linkd)
 OPENFILES Query or display open files
 POPD Return to a previous directory saved by PUSHD•
 PsFile Show files opened remotely
 PUSHD Save and then change the current directory•
 QGREP Search file(s) for lines that match a given 
pattern
 RECOVER Recover a damaged file from a defective disk
 REN Rename a file or files•
 REPLACE Replace or update one file with another
 RD Delete folder(s)•
 RMTSHARE Share a folder or a printer
 ROBOCOPY Robust File and Folder Copy
 SHARE List or edit a file share or print share
 SHORTCUT Create a windows shortcut (.LNK file)
 SUBINACL Edit file and folder Permissions, Ownership 
and Domain
 TAKEOWN Take ownership of a file
 TOUCH Change file timestamps
 TREE Graphical display of folder structure
 TYPE Display the contents of a text file•
 WHERE Locate and display files in a directory tree
 WINDIFF Compare the contents of two files or sets of files
 XCACLS Change file and folder permissions
 XCOPY Copy files and folders
Group Policy/Windows Installer
 DevCon Device Manager Command Line Utility 
 GPRESULT Display Resultant Set of Policy information
 GPUPDATE Update Group Policy settings
 MSIEXEC Microsoft Windows Installer
 PsInfo List information about a system
 PsShutdown Shutdown or reboot a computer
 REGSVR32 Register or unregister a DLL
 SHUTDOWN Shutdown the computer
 SLMGR Software Licensing Management (Vista/2008)
 WUAUCLT Windows Update
Networking
 ARP Address Resolution Protocol
 BROWSTAT Get domain, browser and PDC info
 DNSSTAT DNS Statistics
 GETMAC Display the Media Access Control (MAC) address
 IPCONFIG Configure IP
 NET Manage network resources
 NETDOM Domain Manager
 NETSH Configure Network Interfaces, Windows Firewall & Remote 
access
 NBTSTAT Display networking statistics (NetBIOS over 
TCP/IP)
 NETSTAT Display networking statistics (TCP/IP)
 NSLOOKUP Name server lookup
 PATHPING Trace route plus network latency and packet 
loss
 PsPing Measure network performance
 PING Test a network connection
 ROUTE Manipulate network routing tables
 TRACERT Trace route to a remote host
Processes
 KILL Remove a program from memory
 PATH Display or set a search path for executable 
files•
 PsExec Execute process remotely
 PsKill Kill processes by name or process ID
 PsList List detailed information about processes
 PsGetSid Display the SID of a computer or a user
 PsSuspend Suspend processes
 SCHTASKS Schedule a command to run at a specific time
 SOON Schedule a command to run in the near future
 TASKLIST List running applications and services
 TASKKILL Remove a running process from memory
 TLIST Task list with full path
Printing
 CON2PRT Connect or disconnect a Printer
 MODE Configure a system device
 PRINT Print a text file
 PRINTBRM Print queue Backup/Recovery
 PRNCNFG Display, configure or rename a printer
 PRNMNGR Add, delete, list printers set the default 
printer
 RUNDLL32 Run a DLL command (add/remove print connections)
Registry
 REG Registry: Read, Set, Export, Delete keys and 
values
 REGEDIT Import or export registry settings
 REGINI Change Registry Permissions
Remote Desktop
 CHANGE Change Terminal Server Session properties
 Query Process Display processes (TS/Remote Desktop)
 Query Session Display all sessions (TS/Remote Desktop)
 Query TermServer List all servers (TS/Remote Desktop)
 Query User Display user sessions (TS/Remote 
Desktop)
 MSTSC Terminal Server Connection (Remote Desktop 
Protocol)
 RASDIAL Manage RAS connections
 RASPHONE Manage RAS connections
 Reset Session - Delete a Remote Desktop Session
 TSSHUTDN Remotely shut down or reboot a terminal server
 WINRM Windows Remote Management
 WINRS Windows Remote Shell
Services
 CASPOL Code Access Security Policy Tool.
 NETSVC Command-line Service Controller
 PORTQRY Display the status of ports and services
 PsService View and control services
 SC Service Control
 SCLIST Display Services
System Information
 NOW Display the current Date and Time 
 DATE Display or set the date•
 HELP Online Help
 LOGMAN Manage Performance Monitor
 MBSAcli Baseline Security Analyzer
 MEM Display memory usage
 MSINFO32 System Information
 NTRIGHTS Edit user account rights
 PERFMON Performance Monitor
 PsLogList Event log records
 SYSTEMINFO List system configuration
 TIME Display or set the system time•
 TypePerf Write performance data to a log file
 VER Display version information•
 VERIFY Verify that files have been saved•
 WINMSDP Windows system report
 WHOAMI Output the current UserName and domain
User Administration
 ADDUSERS Add or list users to/from a CSV file
 CERTREQ Request certificate from a certification 
authority
 CleanMgr Automated cleanup of Temp files, recycle bin
 CON2PRT Connect or disconnect a Printer
 CMDKEY Manage stored usernames/passwords
 DELPROF Delete user profiles
 DIRUSE Display disk usage
 GLOBAL Display membership of global groups
 LOCAL Display membership of local groups
 LOGOFF Log a user off
 MOVEUSER Move a user from one domain to another
 MSG Send a message
 PERMS Show permissions for a user
 POWERCFG Configure power settings
 PsLoggedOn Who's logged on (locally or via resource 
sharing)
 PsPasswd Change account password
 SHOWGRPS List the Workgroups a user has joined
 SHOWMBRS List the Users who are members of a Workgroup
 SUBST Associate a path with a drive letter
 USRSTAT List domain usernames and last login
Commands marked • are Internal commands only available within the CMD 
shell.
All other commands (not marked with •) are external commands.
External commands may be used under the CMD shell, PowerShell, or directly 
from START-RUN.
Windows CMD Shell Command Line Syntax
 Parameters Command Line Parameters %1 %~f1 
 Variables Create/read environment variables.
 Redirection Spooling output to a file, piping input.
 AND/OR Logic Conditional Execution (If-Then-Else)
http://ss64.com/nt/syntax-conditional.html
http://ss64.com/nt/syntax-redirection.html
http://ss64.com/nt/syntax-variables.html
http://ss64.com/nt/syntax-args.html
http://ss64.com/nt/syntax-run-commands.html
http://ss64.com/ps/
http://ss64.com/nt/subst.html
http://ss64.com/nt/showmbrs.html
http://ss64.com/nt/showgrps.html
http://ss64.com/nt/pspasswd.html
http://ss64.com/nt/psloggedon.html
http://ss64.com/nt/powercfg.html
http://ss64.com/nt/perms.html
http://ss64.com/nt/msg.html
http://ss64.com/nt/moveuser.html
http://ss64.com/nt/logoff.html
http://ss64.com/nt/local.html
http://ss64.com/nt/global.html
http://ss64.com/nt/diruse.html
http://ss64.com/nt/delprof.html
http://ss64.com/nt/cmdkey.html
http://ss64.com/nt/con2prt.html
http://ss64.com/nt/cleanmgr.html
http://ss64.com/nt/certreq.html
http://ss64.com/nt/addusers.html
http://ss64.com/nt/whoami.html
http://ss64.com/nt/winmsdp.html
http://ss64.com/nt/verify.html
http://ss64.com/nt/ver.html
http://ss64.com/nt/typeperf.html
http://ss64.com/nt/time.html
http://ss64.com/nt/systeminfo.html
http://ss64.com/nt/psloglist.html
http://ss64.com/nt/monitor.htmlhttp://ss64.com/nt/ntrights.html
http://ss64.com/nt/msinfo32.html
http://ss64.com/nt/mem.html
http://ss64.com/nt/mbsacli.html
http://ss64.com/nt/logman.html
http://ss64.com/nt/help.html
http://ss64.com/nt/date.html
http://ss64.com/nt/now.html
http://ss64.com/nt/sclist.html
http://ss64.com/nt/sc.html
http://ss64.com/nt/psservice.html
http://ss64.com/nt/portqry.html
http://ss64.com/nt/netsvc.html
http://ss64.com/nt/caspol.html
http://ss64.com/nt/winrs.html
http://ss64.com/nt/winrm.html
http://ss64.com/nt/tsshutdn.html
http://ss64.com/nt/reset-session.html
http://ss64.com/nt/rasphone.html
http://ss64.com/nt/rasdial.html
http://ss64.com/nt/mstsc.html
http://ss64.com/nt/query-user.html
http://ss64.com/nt/query-termserver.html
http://ss64.com/nt/query-session.html
http://ss64.com/nt/query-process.html
http://ss64.com/nt/change.html
http://ss64.com/nt/regini.html
http://ss64.com/nt/regedit.html
http://ss64.com/nt/reg.html
http://ss64.com/nt/rundll32.html
http://ss64.com/nt/prnmngr.html
http://ss64.com/nt/prncnfg.html
http://ss64.com/nt/printbrm.html
http://ss64.com/nt/print.html
http://ss64.com/nt/mode.html
http://ss64.com/nt/con2prt.html
http://ss64.com/nt/tlist.html
http://ss64.com/nt/taskkill.html
http://ss64.com/nt/tasklist.html
http://ss64.com/nt/soon.html
http://ss64.com/nt/schtasks.html
http://ss64.com/nt/pssuspend.html
http://ss64.com/nt/psgetsid.html
http://ss64.com/nt/pslist.html
http://ss64.com/nt/pskill.html
http://ss64.com/nt/psexec.html
http://ss64.com/nt/path.html
http://ss64.com/nt/kill.html
http://ss64.com/nt/tracert.html
http://ss64.com/nt/route.html
http://ss64.com/nt/ping.html
http://ss64.com/nt/psping.html
http://ss64.com/nt/pathping.html
http://ss64.com/nt/nslookup.html
http://ss64.com/nt/netstat.html
http://ss64.com/nt/nbtstat.html
http://ss64.com/nt/netsh.html
http://ss64.com/nt/netdom.html
http://ss64.com/nt/net.html
http://ss64.com/nt/ipconfig.html
http://ss64.com/nt/getmac.html
http://ss64.com/nt/browstat.html
http://ss64.com/nt/arp.html
http://ss64.com/nt/wuauclt.html
http://ss64.com/nt/slmgr.html
http://ss64.com/nt/shutdown.html
http://ss64.com/nt/regsvr32.html
http://ss64.com/nt/psshutdown.html
http://ss64.com/nt/psinfo.html
http://ss64.com/nt/msiexec.html
http://ss64.com/nt/gpupdate.html
http://ss64.com/nt/gpresult.html
http://ss64.com/nt/devcon.html
http://ss64.com/nt/xcopy.html
http://ss64.com/nt/xcacls.html
http://ss64.com/nt/windiff.html
http://ss64.com/nt/where.html
http://ss64.com/nt/type.html
http://ss64.com/nt/touch.html
http://ss64.com/nt/takeown.html
http://ss64.com/nt/subinacl.html
http://ss64.com/nt/shortcut.html
http://ss64.com/nt/share.html
http://ss64.com/nt/robocopy.html
http://ss64.com/nt/rmtshare.html
http://ss64.com/nt/rd.html
http://ss64.com/nt/replace.html
http://ss64.com/nt/ren.html
http://ss64.com/nt/recover.html
http://ss64.com/nt/qgrep.html
http://ss64.com/nt/pushd.html
http://ss64.com/nt/psfile.html
http://ss64.com/nt/popd.html
http://ss64.com/nt/openfiles.html
http://ss64.com/nt/mklink.html
http://ss64.com/nt/move.html
http://ss64.com/nt/md.html
http://ss64.com/nt/icacls.html
http://ss64.com/nt/ftype.html
http://ss64.com/nt/ftp.html
http://ss64.com/nt/fsutil.html
http://ss64.com/nt/forfiles.html
http://ss64.com/nt/findstr.html
http://ss64.com/nt/find.html
http://ss64.com/nt/fc.html
http://ss64.com/nt/extract.html
http://ss64.com/nt/expand.html
http://ss64.com/nt/del.html
http://ss64.com/nt/dir.html
http://ss64.com/nt/del.html
http://ss64.com/nt/del.html
http://ss64.com/nt/csccmd.html
 Loops Loops and Subroutines.
 functions How to package blocks of code.
 Services List of Windows XP Services
Evaluating expressions
 Using brackets to Group and expand expressions.
 Delayed Expansion Variables within loops.
 Escape chars, delimiters and quotes
 SET /A Environment variable arithmetic.
 VarSubstring Extract part of a variable (substring)
 VarSearch Search & replace part of a variable.
 RANDOM Random Numbers.
 Wildcards Match multiple files.
Batch Files
 Run a script How to run a script.
 DateMath Add or subtract days from any date.
 GetDate.cmd Get todays date (any region, any OS.)
 GetTime.cmd Get the time now.
 GetGMT.cmd Time adjusted to Greenwich Mean Time.
 DeQuote Remove quotes from a string.
 DelOlder Delete files more than n days old.
 StampMe.cmd Rename a file with the date/time.
 tdiff.cmd Time difference in Hours/Minutes.
 Which.cmd Display full path to any command.
 xlong.cmd Find filenames that exceed the 256 char pathname 
limit.
 DragDrop.cmd Drag and drop onto a batch script.
Reference/How to
 Autoexec Run commands at startup.
 Slow Browsing Speed up network browsing.
 Desktop Heap Memory configuration.
 Long Filenames NTFS filename issues.
 Display DPI Monitor size settings.
 CMD Internal Commands that are Internal to the CMD shell.
 Keyboard CMD Keyboard shortcuts.
 Printing Printer connections and print drivers.
 Recovery The Recovery Console.
 RUN commands Start | Run commands.
 ProfileFolders Location of User profile folders(XP/Vista/Windows 7).
 Registry User interface settings (XP)
 BuiltIn Groups Built-In Users and Security Groups.
 Groups Local Domain groups, Global and Universal 
groups.
 64Bit Detect 64 bit vs 32 bit Windows
FTP
File Transfer Protocol
Syntax
 FTP [-options] [-s:filename] [-w:buffer] [host]
key 
 -s:filename Run a text file containing FTP commands.
 host Host name or IP address of the remote 
host.
 -g Disable filename wildcards.
 -n No auto-login.
 -i No interactive prompts during ftp.
 -v Hide remote server responses.
 -w:buffer Set buffer size to buffer
 (default=4096)
 -d Debug
 
 -a Use any local interface when binding data 
connection.
Commands to run at the FTP: prompt
append local-file [remote-file]
 Append a local file to a file on the remote 
computer.
ascii Set the file transfer type to ASCII, the 
default. 
 In ASCII text mode, character-set and end-of-
line
 characters are converted as necessary.
bell Toggle a bell to ring after each command. 
 By default, the bell is off.
binary Set the file transfer type to binary. 
 Use `Binary' for transferring executable 
program
 files or binary data files e.g. Oracle
bye End the FTP session and exit ftp
cd Change the working directory on the remote 
host.
close End the FTP session and return to the cmd 
prompt.
debug Toggle debugging. When debug is on, FTP will 
display every command.
delete remote-file
 Delete file on remote host.
dir [remote-directory] [local-file]
 List a remote directory's files and 
subdirectories.
 (or save the listing to local-file)
disconnect Disconnect from the remote host, retaining 
the ftp prompt.
get remote-file [local-file]
 Copy a remote file to the local PC.
glob Toggle the use of wildcard characters in 
local pathnames.
 By default, globbing is on.
hash Toggle printing a hash (#) for each 2K data 
block transferred. 
 By default, hash mark printing is off.
help [command]
 Display help for ftp command.
lcd [directory]
 Change the working directory on the local PC.
 By default, the working directory is the 
directory in which ftp was started.
literal argument [ ...]
 Send arguments, as-is, to the remote FTP 
host.
ls [remote-directory] [local-file]
 List a remote directory's files and folders.
 (short format)
mdelete remote-files [ ...]
 Delete files on remote host.
mdir remote-files [ ...] local-file
 Display a list of a remote directory's files 
and subdirectories.(or save the listing to local-file)
 Mdir allows you to specify multiple files.
mget remote-files [ ...]
 Copy multiple remote files to the local PC.
mkdir directory
 Create a directory on the remote host.
mls remote-files [ ...] local-file
 List a remote directory's files and folders.
 (short format)
mput local-files [ ...]
 Copy multiple local files to the remote host.
open computer [port]
 Connects to the specified FTP server. 
prompt Toggle prompting. Ftp prompts during multiple 
file transfers to 
 allow you to selectively retrieve or store 
files;
 mget and mput transfer all files if prompting 
is turned off. 
 By default, prompting is on.
put local-file [remote-file]
 Copy a local file to the remote host.
http://ss64.com/nt/syntax-64bit.html
http://ss64.com/nt/syntax-groups.html
http://ss64.com/nt/syntax-security_groups.html
http://ss64.com/nt/syntax-reghacks.html
http://ss64.com/nt/syntax-folders.html
http://ss64.com/nt/run.html
http://ss64.com/nt/syntax-recovery.html
http://ss64.com/nt/syntax-printing.html
http://ss64.com/nt/syntax-keyboard.html
http://ss64.com/nt/syntax-internal.html
http://ss64.com/nt/syntax-dpi.html
http://ss64.com/nt/syntax-filenames.html
http://ss64.com/nt/syntax-desktopheap.html
http://ss64.com/nt/slow_browsing.html
http://ss64.com/nt/syntax-autoexec.html
http://ss64.com/nt/syntax-dragdrop.html
http://ss64.com/nt/syntax-xlong.html
http://ss64.com/nt/syntax-which.html
http://ss64.com/nt/syntax-tdiff.html
http://ss64.com/nt/syntax-stampme.html
http://ss64.com/nt/syntax-delolder.html
http://ss64.com/nt/syntax-dequote.html
http://ss64.com/nt/syntax-gmt.html
http://ss64.com/nt/syntax-gettime.html
http://ss64.com/nt/syntax-getdate.html
http://ss64.com/nt/syntax-datemath.html
http://ss64.com/nt/syntax-run.html
http://ss64.com/nt/syntax-wildcards.html
http://ss64.com/nt/syntax-random.html
http://ss64.com/nt/syntax-replace.html
http://ss64.com/nt/syntax-substring.html
http://ss64.com/nt/set.html
http://ss64.com/nt/syntax-esc.html
http://ss64.com/nt/delayedexpansion.html
http://ss64.com/nt/syntax-brackets.html
http://ss64.com/nt/syntax-services.html
http://ss64.com/nt/syntax-functions.html
http://ss64.com/nt/syntax-loops.html
pwd Print Working Directory
 (current directory on the remote host)
quit End the FTP session with the remote host and 
exit ftp.
quote argument [ ...]
 Send arguments, as-is, to the remote FTP 
host.
recv remote-file [local-file]
 Copy a remote file to the local PC.
remotehelp [command]
 Display help for remote commands.
rename filename newfilename
 Rename remote files.
rmdir directory
 Delete a remote directory.
send local-file [remote-file]
 Copy a local file to the remote host.
status Display the current status of FTP connections 
and toggles.
trace Toggles packet tracing; trace displays the 
route of each packet 
type [type-name]
 Set or display the file transfer type:
 `binary' or `ASCII' (the default)
 If type-name is not specified, the current 
type is displayed. 
 ASCII should be used when transferring text 
files.
In ASCII text mode, character-set and end-of-line 
characters are converted as necessary.
Use `Binary' for transferring executable files. 
user user-name [password] [account]
 Specifes a user to the remote host.
verbose Toggle verbose mode. By default, verbose is 
on.
! command Run command on the local PC.
? [command] Display help for ftp command.
Examples
an example FTP Script to retrieve files in binary and then ascii mode:
::GetFiles.ftp
 [User_id]
 [ftp_password]
 binary
 get /usr/file1.exe
 get file2.html
 mget *.jpeg
 ascii
 mget *.txt
 quit
To run the above script:
FTP -s:GetFiles.ftp [hostname]
This will connect as the user:User_id with password:ftp_password
An FTP Script to publish files in binary mode:
::PutFiles.ftp
 [User_id]
 [ftp_password]
 binary
 mput *.html
 cd images
 mput *.gif
 quit
To run the above script:
FTP -s:PutFiles.ftp [hostname]
This will connect as the user:User_id with password:ftp_password
Using the Windows GUI for FTP
Windows Explorer (not Internet Explorer) also has a built in FTP client. 
Type in the address bar: 
ftp://username@ftpserver.address.com 
you will be prompted for the password.
You can also do 
ftp://username:password@ftpserver.address.com
This is not recommended as anyone can read the password.
Secure FTP
Standard FTP does not encrypt passwords - they are sent across the network 
in plain text. A more secure method is to use SecureFTP (SFTP) or 
SecureCopy (SCP) Freeware clients are available e.g. WinSCP
“Only wimps use tape backup: _real_ men just upload their important stuff 
on ftp, and let the rest of the world mirror it” - Linus Torvalds
.
http://winscp.net/eng/download.php
	FTP

Mais conteúdos dessa disciplina