Security Warning: Do you Trust this Printer?

Summary/Problem:

While attempting to manually connect to a Windows shared printer, the security warning “Do you trust this printer?” is presented.

Cause:

This error occurs when the Point and Print Restrictions group policy requires a warning or elevated prompt to install the printer connection or printer drivers for Vista and newer operating systems. Due to the prompt the printer cannot be installed programmatically as the program is not allowed to interact with the warning or elevated prompt dialogs.

Solution:

Change the policy to Disabled.

Open the Group Policy Management Editor -> Computer Configuration -> Policies -> Administrative Templates -> Printers -> Point and Print Restrictions -> change from Not Configured to Disabled.

Change the policy to Enabled.

Open the Group Policy Management Editor -> Computer Configuration -> Policies -> Administrative Templates -> Printers -> Point and Print Restrictions -> Enable, check “Users can only point and print to machines in their forest”, set “When installing drivers for a new connection:” to “do not show warning or elevation prompt” and “When updating drivers for an existing connection:” to “Do not show warning or elevation prompt”.

Attribution:

Last updated:

Author:

Contributions by:

12/23/2016

Dustin Larsen

Mitchell Schwartz