BOOK THIS SPACE FOR AD
ARTICLE ADYesterday, Microsoft released multiple Windows updates to fix the widely reported "PrintNightmare" vulnerability in the Windows Print Spooler service.
According to Microsoft, this vulnerability is impacting all Windows 10 versions, including the most recent May 2021 Update (version 21H1) and version 20H2 (October 2020 Update).
To deploy Microsoft's patch, you need to check for updates under Updates & Security > Windows Update and apply the latest July update, and reboot the system when prompted.
Alternatively, you can install the emergency update manually from the Microsoft Update catalog if you are unable to do so via the normal Windows Update procedure.
However, researchers have revealed that Microsoft's patch is incomplete and attackers can still abuse the vulnerability to gain access to the system. Thankfully, you can temporarily disable the Windows Print Spooler service to mitigate the vulnerability until a proper fix is released.
In this guide, we will highlight the steps to disable the Windows Print Spooler service and mitigate the PrintNightmare CVE-2021-34527 vulnerability.
Disable Print Spooler service on Windows 10 using PowerShell
To mitigate the PrintNightmare vulnerability using PowerShell, follow these steps:
Right-click on the Start Menu or press Windows+X. Click “Windows PowerShell (Admin).”Stop-Service -Name Spooler -Force
Set-Service -Name Spooler -StartupType Disabled
If you want to re-enable the Print Spooler service, follow these steps
Right-click on the Start Menu or press Windows+X.Set-Service -Name Spooler -StartupType Automatic
Start-Service -Name Spooler
Disable Print Spooler service on Windows 10 using Group Policy editor
To mitigate the PrintNightmare vulnerability using Group Policy editor on Windows 10 Pro and Enterprise, follow these steps:
Open Start Menu or Windows Search and enter gpedit.msc to open the Local Group Policy Editor. In Group Policy editor, navigate to the following path: Computer Configuration > Administrative Templates > Printers Double-tap the Allow Print Spooler to accept client connections policy. Select the Disabled option. Tap on the Apply button and select OK.When the policy is disabled, Microsoft says the spooler will automatically reject the client connections and prevent users from sharing printers. However, all printers currently shared will continue to be shared.
The spooler must be restarted for changes to this policy to take effect. To restart the spooler service, follow these steps:
Open Start menu. Type “Services" Double-click “Printer Spooler” in the Services list.If you want to re-enable Print Spooler using Group Policy editor, follow these steps:
Open Start Menu and enter gpedit.msc to open the Local Group Policy Editor. In Group Policy editor, navigate to the following path: Computer Configuration > Administrative Templates > Printers Double-tap the Allow Print Spooler to accept client connections policy. Select the Not configured or Enabled option. Tap on the Apply button and select OK.