When deploying a printer, Desktop Authority returns an error: "Your System administrator has blocked this program..." and printer is not mapped.
An application launcher can be created that runs a script to install the printer with the "Run as administrator" option enabled, or a GPO can be created to elevate rights on the printer software.
An example of a VBS script to map a printer:
' Example VBScript to map a printer on a server
' ******************************
Option Explicit
Dim netPrinter, UNCpath
UNCpath = "\\YourServer\PrinterName"
Set netPrinter = CreateObject("WScript.Network")
netPrinter.AddWindowsPrinterConnection UNCpath
WScript.Quit
' End of example VBScript to map a printer.
Save this script on a shared folder (with read access to authenticated users) as a .VBS file and create an application launcher to run the script using this configuration:
File name including path: $DLLDir\wscript.exe (this will execute the wscript command from c:\windows\system32\ folder)
Arguments: \\server\shared\addprinter.vbs (the UNC to the printer mapping script).
Checkbox Run as administrator: Enabled.
Use Validation Logic as desired to map the printer only on specific computers or accounts, Save and Replicate files.
The printer will be mapped with administrator rights.
© ALL RIGHTS RESERVED. Feedback 이용 약관 개인정보 보호정책 Cookie Preference Center