Fichas
1.4 cmd stuff
Fichas del conjunto (25)
- 1dirList files and directories
- 2cdChange working directory
• Use backslash \ to specify volume or folder name - 3ipconfigMost 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. - 4pingTest reachability
• Determine round-trip time
• Uses Internet Control Message Protocol (ICMP)
• One of your primary troubleshooting tools
• Can you ping the host?
• Written by Mike Muuss in 1983
• The sound made by sonar
• Not an acronym for Packet INternet Groper - 5tracert• Determine the route a packet takes to a destination
• Map the entire path
• Takes advantage of ICMP Time to Live Exceeded message
• The time in TTL refers to hops, not seconds or minutes
• TTL=1 is the first router, TTL=2 is the second router, etc.
• Not all devices will reply with ICMP Time Exceeded
• Some firewalls filter ICMP
• ICMP is low-priority for many devices - 6netstatNetwork statistics
• Many different operating systems - 7netstat -aShow all active connections
- 8netstat -bShow binaries (Windows)
- 9netstat -nDo not resolve names
- 10nslookupLookup information from DNS servers
• Canonical names, IP addresses, cache timers, etc.
• Lookup names and IP addresses
• Many different options - 11shutdownShutdown a computer
shutdown /s /t nn
Shutdown and restart after nn seconds
• shutdown /a
• Abort the countdown! - 12dismDeployment 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 - 13SfcSystem File Checker
• Scan integrity of all protected system files
sfc /scannow
• 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 - 14TaskListtasklist
• Displays a list of currently running processes
• Local or remote machine - 15taskkill• Terminate tasks by process id (PID) or image name
• TASKKILL /IM notepad.exe
• TASKKILL /PID 1234 /T - 16Managing Group PolicyGroup Policy
• Manage computers in an Active Directory Domain
• Group Policy is usually updated at login
• 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 - 17format• Formats a disk for use with Windows
• format c:
copy
• Copy files from one location to another
• copy (/v, /y)
• /v - Verifies that new files are written correctly
• /y - Suppresses prompting to confirm you want to overwrite an existing destination file - 18copyCopy files from one location to another
• copy (/v, /y)
• /v - Verifies that new files are written correctly
• /y - Suppresses prompting to confirm you want to overwrite an existing destination file - 19xcopy • Copies files and directory trees • xcopy /s Documents m:\backupsRobust Copy
• robocopy
• A better Xcopy
• Included with Windows 7, 8.1, and 10 - 20net• Windows network commands
• View network resources
• net view \\
• net view /workgroup:
• Map a network share to a drive letter
• net use h: \\\
• View user account information and reset passwords
• net user
• net user * /domain
• Commands available with standard privileges vs. administrative privileges - 21PrivilegesNot all users can run all commands
• Some tasks are for the administrator only - 22Standard privilegesRun applications as normal user
• This works fine for many commands - 23Administrative/elevated privileges• You must be a member of the Administrators group
• Right-click Command Prompt,choose Run as Administrator - 24Command line troubleshootingUse “help” if you’re not sure
• > help dir
• > help chkdsk
• Also use:
• [command] /?
• Close the prompt with exit - 25—
Información
- Descripción
- Fichas sobre 1.4 cmd stuff , creado por Digital Lightning Photography el 05/08/2021.
- Creado por
- Digital Lightning Photography
- Visitas
- 16
- Valoración