This commit is contained in:
USER
2025-09-22 19:06:49 +01:00
parent 9091bc2a2e
commit aa10e6dd54

View File

@ -19,7 +19,8 @@ if errorlevel 1 (
) else ( ) else (
echo Printer %myPrinter% is available. 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" -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 exit /b