Guide

Turn off Print Spooler on domain controllers

The Print Spooler service runs on every Windows server by default. On a domain controller it prints nothing, and it has been the way in for several serious attacks. Turn it off.

5 minutesRun as a domain admin on CON-DC-01
What improves

One well-known way into a domain controller is closed.

Why it matters

The Print Spooler has been used in several serious attacks and a DC does not need it.

How you do it

Stop and disable the service on every domain controller.

Check first

If a domain controller is also your print server, move the printers to another server before you do this.

Check the service on every domain controller

CON-DC-01
$dcs = (Get-ADDomainController -Filter *).HostName
Invoke-Command -ComputerName $dcs -ScriptBlock { Get-Service Spooler | Select-Object Status, StartType } |
    Format-Table PSComputerName, Status, StartType -AutoSize

Stop and disable it

CON-DC-01
Invoke-Command -ComputerName $dcs -ScriptBlock {
    Stop-Service Spooler -Force
    Set-Service Spooler -StartupType Disabled
}

Check

Run the command from step 1 again. Every domain controller should show Stopped and Disabled.

What stops working

Printing from the domain controller itself, and the automatic clean-up of old printers published in Active Directory. Printing for staff and pupils is not affected, because that goes through your print server.

Done when

Check

The Print Spooler is Stopped and Disabled on every domain controller.

Your progress is kept in this browser only.