Microsoft Command Line Tool Flashcards
1
Q
File management
A
- dir
- List files and directories
- cd
- Change working directory
- Use backslash \ to specify volume or folder name
- ..
- Two dots/periods
- The folder above the current folder
2
Q
shutdown
A
- Shutdown a computer
- And optionally restart
- shutdown /s /t nn
- Wait nn seconds, then shutdown
- shutdown /r /t nn
- Shutdown and restart after nn seconds
- shutdown /a
- Abort the countdown!
3
Q
dism
A
- 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
4
Q
sfc
A
- Scan integrity of all protected system files
* sfc /scannow
5
Q
Check Disk
A
- chkdsk /f
- Fixes logical file system errors on the disk
- chkdsk /r
- Locates bad sectors and recovers readable information
- Implies /f
- If volume is locked, run during startup
6
Q
DiskPart
A
- Manage disk configurations
* diskpart - start the DiskPart command interpreter
7
Q
TaskList
A
- Manage tasks from the command line
- No Task Manager required!
- tasklist
- Displays a list of currently running processes
- Local or remote machine
8
Q
taskkill
A
- Manage tasks from the command line
- No Task Manager required!
- Terminate tasks by process id (PID) or image name
- TASKKILL /IM notepad.exe
- TASKKILL /PID 1234 /T
9
Q
Group Policy
A
- Group Policy
- Manage computers in an Active Directory Domain
- Group Policy is usually updated at login
10
Q
Managing Group Policy
A
- gpupdate
- Force a Group Policy update
- gpupdate /target:{computer|user} /force
- gpupdate /target:professor /force
- gpresult
- Verify policy settings for a computer or user
- gpresult /r
- gpresult /user sgc/professor /v
11
Q
Format
A
- Formats a disk for use with Windows
* format c:
12
Q
Copy
A
• Copy files from one location to another
•copy (/a, /v, /y)
•/v - Verifies that new files are written correctly
•/y - Suppresses prompting to confirm you want to
overwrite an existing destination file
13
Q
Xcopy
A
- Copies files and directory trees
* xcopy /s Documents m:\backups
14
Q
Robust Copy
A
- robocopy
- A better Xcopy
- Included with Windows 7, 8.1, and 10
15
Q
ipconfig
A
- Most of your troubleshooting starts with your IP address
- Ping your local router/gateway
- Determine TCP/IP and network adapter information
- And some additional IP details
- View additional configuration details
- DNS servers, DHCP server, etc