Computer System Servicing
Computer System Servicing
CMD EXERCISES
CSS_B
1. Open Command Prompt: o Press Windows + R, type cmd, and press Enter.
o Type the command cd and press Enter. This will show your current
directory.
*C:\Users\tommy
o Command: cd C:\Users\YourUsername\Documents
Question: What happens when you run this command?
o Type dir and press Enter to see all files and directories in the current
directory.
Question: Was a new folder created? Check your directory by typing dir.
*yes
o Command: cd PracticeFolder
*yes
o Create a new text file inside the PracticeFolder by typing the command:
Question: What does the echo command do? Check your folder using dir.
1. Rename a File:
Question: Verify that the file was renamed by typing dir again.
o Use the copy command to copy the renamed file to the C:\Users\
YourUsername\Desktop.
o Delete the copied file on the Desktop using the del command.
*yes
o Command: systeminfo
o Use the dir command to display the available disk space on the current
directory.
o Command: dir
Question: Look for the "bytes free" line and note how much space is
available.
1. Ping a Website:
*it shows the reply from a IP address which means that the connection was
successful.
2. Display IP Configuration:
Question: What information does this command display? Look for your
IP address.
Command: tasklist
*yes
o Command: shutdown /s /f /t 30
Question: What does /s, /f, and /t mean in the command?
*it means
that the
device will
shutdown
and at the
same time
force the
current
running
applications
or software to terminate.
o Command: shutdown /r /f /t 10
Question: What happens after running this command?
Malicious software often runs in the background, and you can use CMD to identify
these processes.
o Alternatively, search for cmd in the Start menu, right-click it, and select
Run as administrator.
o Command: tasklist
Question: What processes are running? Look for any unfamiliar
processes that might be suspicious.
The System File Checker (SFC) tool can be used to scan and repair corrupted or
malicious system files.
Question: What happens during the scan? How long does it take to
complete?
o Once the scan completes, SFC will provide a summary of what was
found. If any malicious or corrupted files were found, the system will
attempt to repair them.
Question: Were any integrity violations found? What was the action
taken?
*YES
You can use Windows Defender through Command Prompt to perform a virus scan.
o Type the following command to run a quick scan for viruses and
malware:
Question: How long does it take for the scan to complete? What files
are scanned during the process?
*1 hour
o A full scan is more thorough and may take longer to complete. Type
the following command to perform a full system scan:
o After the scan, check the results by reviewing the log file or reviewing
the Defender interface. You can also check the status of the last scan
using:
If malicious files or programs are found, you can attempt to delete or quarantine
them using CMD.
o Command: cd C:\Users\YourUsername\Downloads
Question: Are there any files that look suspicious?
NONE
o If you know the malicious file name, you can use the del command to
remove it. Be very careful when deleting files.
NONE
o You can use wildcards (*) to delete multiple files at once. For example,
to delete all .exe files:
NONE
You can schedule regular virus scans using Task Scheduler and CMD commands.
o Command:
Question: What happens when you schedule the scan? Can you verify that the task
is created in Task Scheduler?
*The scan will automatically do its task at the time it was scheduled.
• You can check the list of scheduled tasks using the following command:
Question: Is your scheduled virus scan listed? What time is it set to run?
YES
• If you no longer want to run the task, you can delete it using the schtasks
command.
YES, it was removed in the task scheduled list and, in the query
Bonus Challenge 7: Clear Temporary Files and Cache
Malicious software often hides in temporary files or caches. You can use CMD to
clear these files.
o Sometimes, malware hides in Windows event logs. You can clear event
logs using the following command:
NONE