1.2 Windows Command Flashcards
Use the appropriate Microsoft command-line tool
Name two things an administrative user can do but a regular user can’t.
- Create a new user account
- Access files or folders
System File Checker
Provides a manual interface for verifying system files and restoring them from the cache
ipconfig
Provides information about own network connection
ping
Verifies good connectivity between client and remote destination
tracert
Shows every stop along the way by using multiple pings out and back
pathping
Gives a more accurate round-trip time
hostname
Gives the hostname of the PC
nslookup
Allows for discovery of IP/DNS record of a domain name. Also provides reverse DNS (find the domain from the IP)
netstat
Generates network status and protocol statistics
This command serves as a monitoring tool for connections over the network
netstat
What specific tasks could you use netstat for?
Port listening, routing tables, and discovering which computers or networks a PC is connected to
chkdsk
Scans hard drive for file system errors
Which two types of errors can chkdsk fix?
Logical and physical
net user
Manage local user accounts and their passwords
format
Creates a new root directory and file system for the disk
Which command do you need to run before using a new disk?
format
xcopy
Copies files or groups of files to and from directories
copy
Copies one or more files from one location to another
robocopy
Copies large datasets or lots of files across volumes
Which ‘copy’ command is best for backing up data and why?
robocopy, because it can resume copies if interrupted and also has the option for logging during copying
gpupdate
Refreshes group policies that have been changed
gpresult
Displays policy settings that were enforced on the PC for the specified user when the user signed in
shutdown
Shuts down the computer - can also be used for remote computers on the network
sfc
Examines and replaces damaged system files
diskpart
- Create, resize, delete hard drive partitions
- Set active/bootable partitions
winver
Displays the version of Windows, build number, and service packs