CodeDump icon indicating copy to clipboard operation
CodeDump copied to clipboard

/Install-Printers/Configure-Policies.ps1

Open Orava2 opened this issue 3 years ago • 1 comments

The script Configure-Policies.ps1 won't remove the "Do you trust this printer" prompt. The script will block connections to the servers which are not defined but Windows doesn't trust the defined servers.

Should the script work after Microsoft's PrintNightmare updates?

Orava2 avatar Aug 23 '21 07:08 Orava2

The current version of the script Configure-Policies.ps1 won't disable the "Do you trust this printer" prompt.

To remove the prompt one need to set key RestrictDriverInstallationToAdministrators to 0. reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\PointAndPrint" /v RestrictDriverInstallationToAdministrators /t REG_DWORD /d 0 /f

https://support.microsoft.com/en-gb/topic/kb5005652-manage-new-point-and-print-default-driver-installation-behavior-cve-2021-34481-873642bf-2634-49c5-a23b-6d8e9a302872

Orava2 avatar Aug 24 '21 07:08 Orava2