Disable Print Spooler script for Print Nightmare is not working
We have created a ps script to disable print spooler due to Print Spooler vulnerability, as checked the script is not working as expected.
Can anyone help us to rectify the issue or modify the scriptDisablePrintSpool_for_PrintNightmare
Answers ( 3 )
Hello, What exactly are you having issues with a script?
You can explore the options to FiX Print Spooler here –
Fix Windows Print Spooler service Issue Out of Band Update Options –
In the current script registry value not creating and it’s failed to create that.
Need assistance to rectify the issue with the script.
Please add the details about the error message! If you encounter any.
You could try something like this, Instead of using a lot variable inside powershell command to add Registry –
Test it out, Make sure to check the quote inside the value –
# Set the location to the registry
Set-Location -Path ‘HKLM:\Software\Policies\Microsoft\Windows NT\Printers’
#Create new items with values
New-ItemProperty -Path ‘HKLM:\Software\Policies\Microsoft\Windows NT\Printers’ -Name ‘RegisterSpoolerRemoteRpcEndPoint’ -Type DWord -Value 2 -Force