Disable Print Spooler script for Print Nightmare is not working

Question

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 )

    0
    2021-07-18T14:35:46+05:30

    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 –

    + https://www.anoopcnair.com/fix-windows-print-spooler-service-issue-updates/
    + https://howtomanagedevices.com/windows-10/6975/fix-zero-day-printnightmare/

      0
      2021-07-18T15:02:08+05:30

      In the current script registry value not creating and it’s failed to create that.

      Need assistance to rectify the issue with the script.

        0
        2021-07-18T16:00:40+05:30

        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

        Best answer

Leave an answer

Sorry, you do not have permission to answer to this question .