Sitemap

Windows Command Line

2 min readOct 27, 2024

--

Windows Command Line

Learn the essential Windows commands.

Press enter or click to view image in full size

Cyber Security 101

  • Command Line
  • Windows Command Line
  • Learn the essential Windows commands.

Task 1 :- Introduction

Q1)What is the default command line interpreter in the Windows environment?

Answer:- cmd.exe

Task 2 :- Basic System Information

Q2)What is the OS version of the Windows VM?

Answer:- 10.0.20348.2655

Q3)What is the hostname of the Windows VM?

Answer:- WINSRV2022-CORE

Task 3 :-Network Troubleshooting

Q4)Which command can we use to look up the server’s physical address (MAC address)?

Get TRedEye’s stories in your inbox

Join Medium for free to get updates from this writer.

Answer :- ipconfig /all

Q5)What is the name of the process listening on port 3389?

Answer :- TermService

Q6) What is the IP address of your gateway?

Answer :- 10.10.0.1

Task 4 :- File and Disk Management

Q7)What are the file’s contents in C:\Treasure\Hunt?

Answer :- THM{CLI_POWER}

Task 5 :- Task and Process Management

Q8)What command would you use to find the running processes related to notepad.exe?

Answer :- tasklist /FI “imagename eq notepad.exe”

Q9)What command can you use to kill the process with PID 1516?

Answer :- taskkill /PID 1516

Task 6 :- Conclusion

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

Answer :- shutdown /r

Q11)What command can you use to abort a scheduled system shutdown?

Answer :- shutdown /a

Happy hacking! 🧑‍💻 Follow for more walkthrough…@TRedEye

--

--

TRedEye
TRedEye

Written by TRedEye

I'm a Penetration Tester, Cyber security researcher & Top 2% in Tryhackme