Skip to content

PowerShell script to check if system is vulnerable to the PrintNightmare vulnerability, along with some manual checks.

Notifications You must be signed in to change notification settings

xbufu/PrintNightmareCheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

PrintNightmareCheck

This repository contains some manul checks to see if the system is vulnerable to the PrintNightmare vulnerability (CVE-2021-1675, CVE-2021-34527) and also a PowerShell script to automate the process.

Please note that this is the first PowerShell script I have ever written myself so do not rely on it!

Manual checks

Check if Print Spooler service is running

# Using WMIC
wmic service list brief | findstr "Spool"

# Using PowerShell
Get-Service "Print Spooler"

Check latest security patches

Get-HotFix -Description "Security*" | Sort-Object -Property InstalledOn

About

PowerShell script to check if system is vulnerable to the PrintNightmare vulnerability, along with some manual checks.

Resources

Stars

Watchers

Forks