.
This commit is contained in:
@ -19,7 +19,8 @@ if errorlevel 1 (
|
||||
) else (
|
||||
echo Printer %myPrinter% is available.
|
||||
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\%myPrintServer%\%myPrinter%"
|
||||
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -t -p "\\%myPrintServer%\%myPrinter%"
|
||||
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -t -p "\\%myPrintServer%\%myPrinter%"
|
||||
RUNDLL32 PRINTUI.DLL,PrintUIEntry /y /n "\\%myPrintServer%\%myPrinter%"
|
||||
)
|
||||
|
||||
exit /b
|
||||
Reference in New Issue
Block a user