This commit is contained in:
USER
2023-04-20 18:57:40 +01:00
parent 0e5dc9aec9
commit a937ea8814
3 changed files with 108 additions and 153 deletions

View File

@ -60,11 +60,22 @@ if [%ZUPER%] == [1] (
) else (
if [%PRINTER%] == [1] (
echo "Installing Brother"
%EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
@REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
@REM rundll32 printui.dll,PrintUIEntry /in /n \\192.168.1.22\brother
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.22\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.22\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\192.168.1.22\BROTHER"
@REM rundll32 printui.dll,PrintUIEntry /y /n \\server_name\printer_name
)
if [%PRINTER%] == [2] (
echo "Installing Zebra"
%EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
@REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
CD C:\WINDOWS\SYSTEM
@REM rundll32 printui.dll,PrintUIEntry /in /n \\192.168.1.21\zebra
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.21\ZEBRA"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.21\ZDesigner GK420d"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\192.168.1.21\ZEBRA"
@REM rundll32 printui.dll,PrintUIEntry /y /n \\server_name\printer_name
)
if [%PRINTER%] == [3] (
echo "Installing Brother and Zebra"
@ -77,4 +88,18 @@ echo "FINISHED: %~n0"
@REM https://woshub.com/manage-printers-and-drivers-from-the-command-line-in-windows-8/
@REM https://ss64.com/nt/net-use.html
@REM https://www.windowscentral.com/how-properly-remove-printer-windows-10#uninstall_printer_printmanagement
@REM https://www.windowscentral.com/how-properly-remove-printer-windows-10#uninstall_printer_printmanagement
@REM Printer name \\192.168.1.21\ZDesigner GK420d
@REM Share name ZEBRA
@REM Driver name ZDesigner GK420d
@REM C:\Windows\System>cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.21\ZDesigner GK420d"
@REM Printer name \\192.168.1.22\BROTHER
@REM Share name BROTHER
@REM Driver name Brother DCP-L2510D series