Skip to main content

Command Palette

Search for a command to run...

Command Line: Windows Command Line (TryHackMe)

Updated
1 min read
Command Line: Windows Command Line (TryHackMe)

In this article, I will write a write-up for the Windows Command Line that covers Basic System Information, Network Troubleshooting, File and Disk Management, and Task and Process Management.

  1. What is the default command line interpreter in the Windows environment? cmd.exe

  2. What is the OS version of the Windows VM? 10.0.20348.2655

  3. What is the hostname of the Windows VM? WINSRV2022-CORE

  4. Which command can we use to look up the server’s physical address (MAC address)? ipconfig /all

  5. What is the name of the process listening on port 3389? TermService

  6. What is the IP address of your gateway? 10.10.0.1

  7. What are the file’s contents in C:\Treasure\Hunt? THM{CLI_POWER}

  8. What command would you use to find the running processes related to notepad.exe? tasklist /FI "imagename eq notepad.exe”

  9. What command can you use to kill the process with PID 1516? taskkill /PID 1516

  10. The command shutdown /s can shut down a system. What is the command you can use to restart a system? shutdown /r

  11. What command can you use to abort a scheduled system shutdown? shutdown /a

Thank you for reading my article. Please leave any questions or comments on improving my learning journey and the THM challenges.