OS CMD Tools Flashcards
Partitions disks
diskpart
Formatting a disk
format
Check a disk
chkdsk /f (fixes logical errors on disk) /r (locates bad sectors, recovers information
Make a Directory
md
Change a Directory
cd
Remove a directory
rd
Directory listing
dir (list files and directories)
Delete a file from a directory or disk
del names
Duplicate Files
copy /v (verifies that new files are written correctly) /y (suppresses overwrite prompts)
Extended copy
xcopy copies multiple files and dir trees source [destination]
Create a robust copy
robocopy functionally replaces xcopy, designed to handle NTFS file sys details
Task list
tasklist displays a list of currently running processes, local or remote device
Kill a task
taskkill terminates tasks by process id (PID) or image name
System File Checker
sfc /scannow - run the check, scan integrity of all protected system files
Shutdown a computer
shutdown
Remove files from a Windows cabinet file
expand -d (displays files in a cabinet) >expand -d , -f:filename - extract a file, >extract -f:filename
Force a Group Policy update
gpupdate /target:{computer|user} /force
Verify policy settings for a computer or user
gpresult /r
Fixing the MBR
BOOTREC /FixMbr
Fixing the Volume Boot Record
BOOTREC /FixBoot
Rebuilding the Boot Configuration Data
BOOTREC /RebuildBcd