Two of the easiest ways to make a Windows machine safer are keeping it updated and turning off services it does not need. This lesson shows you how to do both on your own practice VM.
Safety note: work from a snapshot on your practice VM. Do not disable services on a real computer unless you know exactly what depends on them.
Why updates matter
Software has bugs, and some bugs are security holes. Microsoft releases patches to fix them, usually on the second Tuesday of each month (“Patch Tuesday”). Once a hole is public, anyone can read about it, so an unpatched machine becomes easy to attack. Updating closes known holes.
To check and configure updates:
- Open Settings > Update & Security > Windows Update (or Windows Update in Windows 11).
- Click Check for updates and install what is offered. Restart if asked.
- Open Advanced options and make sure automatic updates are on. Turn on “Receive updates for other Microsoft products” so Office and other Microsoft software are patched too.
- Check Update history to confirm installs succeeded.
Applications matter too. Browsers, PDF readers and Java should be on current versions. In CyberPatriot scenarios, outdated browsers and apps often count for points.
You can also see installed patches from the command line:
wmic qfe list brief
systeminfo
What a service is
A service is a program that runs in the background without a window, such as printing, networking or Windows Update itself. Each service has a startup type:
- Automatic: starts when Windows boots.
- Manual: starts only when something asks for it.
- Disabled: cannot start at all.
Every running service is extra code that could contain a bug, so the goal is to run only what is needed. This is called reducing the attack surface.
Reviewing and changing services
Press Win+R, type services.msc and press Enter. Double-click a service to see its description, startup type and what depends on it. The Dependencies tab matters: stopping a service can break others.
From an administrator Command Prompt on your practice VM:
sc query state= all
sc qc Telnet
sc stop Telnet
sc config Telnet start= disabled
The first lists services, the second shows the configuration of one, the third stops it and the last disables it (note the space after =). In PowerShell you can use Get-Service and Set-Service -Name Telnet -StartupType Disabled.
Services that are commonly reviewed in hardening exercises, if the scenario does not need them:
- Telnet (sends data unencrypted).
- Remote Registry (lets remote users read the registry).
- FTP / IIS web services on a workstation with no web role.
- Remote Desktop Services if remote access is not required.
- SNMP and Simple TCP/IP services.
Never disable a service just because its name sounds scary. Read the description, read the scenario README, and keep services that the machine’s job requires. Do not disable Windows Update, Windows Defender or the Windows Firewall services.
Check your understanding
1. What is a Windows service?
- A program that runs in the background
- A type of user account
- A firewall rule
- A kind of virus
Answer: A program that runs in the background. Services usually have no window and often start at boot.
2. Why disable unneeded services?
- It makes the computer louder
- It reduces the attack surface
- It installs updates
- It adds users
Answer: It reduces the attack surface. Less running code means fewer places for a vulnerability to hide.
3. Which startup type means the service cannot start at all?
- Automatic
- Manual
- Disabled
- Delayed
Answer: Disabled. A disabled service will not start until you change the setting.
4. Before stopping a service, what should you check?
- Its dependencies and whether the scenario needs it
- The desktop wallpaper
- The monitor size
- Nothing, just stop it
Answer: Its dependencies and whether the scenario needs it. Stopping a needed service can break other features.
