1.4 Given a scenario, use appropriate Microsoft command line tools. Flashcards
- dir
dir displays a list of a directory’s files and subdirectories.
Without parameters, display’s disk’s volume label and serial number, followed by a list of directories and files on the disk.
- cd
cd displays the name of or changes the current directory.
- ..
.. moves you back one folder in command line
• ipconfig
Ipconfig Displays all current TCP/IP network configuration values and refreshes DHCP and DNS settings.
Used without parameters, displayed IPv4 and IPv6 addresses, subnet mask, and default gate for ALL adapters.
• ping
Ping Verifies IP-level connectivity to another TCP/IP computer by sending ICMP echo Request messages.
The receipt of corresponding echo Reply messages are displayed, along with round-trip times (ex. 54ms)
• tracert
Tracert Determines the path taken to a destination by sending ICMP echo Request or ICMPv6 messages to the destination with incrementally increasing TTL field values.
Used without parameter, tracert displays help. tracert [/d] [/h ] [/j ] [/w ] [/R] [/S ] [/4][/6]
• netstat
netstat Displays active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, IPv4 statistics (for the IP, ICMP, TCP, and UDP protocols), and IPv6 statistics.
Used without parameters, netstat displays active TCP connections.
• nslookup
nslookup (applies to: Windows Server) Displays information that you can use to diagnose DNS infrastructure.
Before using, familiarize yourself with DNS. The nslookup command-line tool is available only if you have installed the TCP/IP protocol.
• shutdown
shutdown enables you to shut down or restart local or remote computers one at a time.
• dism
dism Deployment Image and Management (DISM.exe) CLI tool used to service and prepare Windows images, Windows PE, RE and Windows setup. (.wim, .vhd, or .vhdx) dism • Deployment Image Servicing and Management tool • Manage Windows Imaging Format (WIM) files • Make changes to your image with DISM • Get information about an image • Update applications • Manage drivers • Manage updates • Mount an image • All command-line based • Many different options • Easy to automate
• sfc
sfc Scans and verifies the integrity of all protected system files and replaces incorrect versions with correct versions.
• chkdsk
chkdsk Checks the file system and file system metadata of a volume for logical and physical errors. If used without parameters, displays only the status of the volume and does not fix any errors. If used with /f,/r,/x, or /b parameters, it fixes errors on the volume.
Must be a local Administrator à Run as administrator Don’t interrupt chkdsk. Doing so should not leave the volume any more corrupt than it was prior. Just rerun it for repairs. Only used for local disks.
• diskpart
diskpart Applies to: pretty much everything (Windows (7,8,8.1,10) /Windows Server (2008, 2008R2, 2012,2012 R2, 2016,2019))
This command helps manage PC’s drives (disks, partitions, volumes, VHD). Before you can use the commands, first list, then select object to give focus. After doing so, the object will be able to receive the commands.
• taskkill
taskkill (Applies to Windows Server also) Ends one or more tasks or processes. Processes can be ended by process ID or image name. replaces the kill tool
• gpupdate
gpupdate updates Group Policy settings. Run at cmd line: gpupdate /force
This forces the WS to update
[/target:{Computer | User}] [/force] [/wait:] [/logoff] [/boot] [/sync] [/?]