-
help
Helps. Example help copy
-
/?
Same as help. Example copy /?
-
dir
list files and directories
-
cd
change directory.
Example cd (folder)
-
md
make directory. Example md (name of new folder)
-
-
hostname
The hostname command simply displays the name of the host at the command line. This can be a very useful utility when three or more remote console windows are open.
-
format
formats drive. Example C:\>format (name of drive):
-
copy
copies a file. Example copy (name of file) (new name)
-
copy /v
verify files and written correctly. copy /v (name of file) (new name)
-
copy /y
skips the prompt for overwriting. copy /y (name of file) (new name)
-
xcopy
copy files and directory trees.
-
xcopy /s
copy files in directory to new folder - xcopy /s (name of folder) (name of location to copy to)
-
robocopy
Robust copy. Example robocopy (path of directory you want to copy) (/E copies everything /S does not copy empty) (Path to folder)
-
shutdown
shutdown /s /t nn With /r will restart. Example shutdown /s /t (number of seconds)
-
shutdown /a
abort the current shutdown
-
diskpart
Diskpart (Disk Partitioning) provides command line access to disk and partition configuration settings.
-
winver
shows you what version of windows you are running.
-
gpupdate
Any changes made to Group Policy usually take effect during the login process. To update changes to a computer without going through the login process, it's common to run the gpupdate (Group Policy Update) command.
Example: gpudate /target:(user) /force
-
gpresult
verify policy settings for user. Example gpresult /r for logged in user
-
gpresult /user (username) /v
Displays verbose policy information. This includes detailed settings that were applied with a precedence of 1.
-
-
ipconfig /all
Detailed IP information
-
ping
round trip time. Uses ICMP internet control message protocol. Example ping (IP Address)
-
netstat
- network statistics. Available on all operating systems.
- netstat -a - shows all active connection
- netstat -b - show binaries
- netstat -n - do not show names
-
nslookup
Name server lookup, gives an IP address from the name. Example nslookup (name of site)
-
net
windows network information. Example net view \\(Name of server)
-
net use drive: \\<servername>\<sharename>
The Windows net use command is used to map a network share to a drive letter.
-
tracert
Traceroute, determines the route a packet takes to the destination. TTL= Time to live Example: tracert (IP address) , tracert -d (IP address but less information)
-
pathping
combine ping and tracert. Example pathping (IP address)
-
sfc /scannow
SFC (system file checker) utility will scan the integrity of all protected system files and replace any files that may be corrupted.
-
chkdsk
The chkdsk (Check Disk) command can fix logical file system error and locate and recover data from bad sectors on a hard drive.
Example: chkdsk (name of drive): /f / chkdsk (name of drive): /r (repairs errors)
SFC analyzes your system files while CHKDSK searches your hard drive
-
arp
address resolution protocol. Gives you the mac address from the IP. Example: arp -a
-
route print
view the device’s local routing table
-
telnet
login to devices remotely over tcp/23, unencrypted use SSH. Example telnet (IP address) (port number)
-
nmap
Network mapper, port scan for open ports, operating system scan, service scan. Example: nmap -F (IP address)
|
|