This commit is contained in:
USER
2023-04-20 18:37:24 +01:00
parent fe88e3aed2
commit c417076014

View File

@ -62,6 +62,8 @@ if [%ZUPER%] == [1] (
echo "Installing Brother" echo "Installing Brother"
@REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS% @REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
@REM rundll32 printui.dll,PrintUIEntry /in /n \\192.168.1.22\brother @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" 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 @REM rundll32 printui.dll,PrintUIEntry /y /n \\server_name\printer_name
) )
@ -70,6 +72,8 @@ if [%ZUPER%] == [1] (
@REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS% @REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
CD C:\WINDOWS\SYSTEM CD C:\WINDOWS\SYSTEM
@REM rundll32 printui.dll,PrintUIEntry /in /n \\192.168.1.21\zebra @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\zebra"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\192.168.1.21\zebra" 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 @REM rundll32 printui.dll,PrintUIEntry /y /n \\server_name\printer_name
) )
@ -84,4 +88,63 @@ echo "FINISHED: %~n0"
@REM https://woshub.com/manage-printers-and-drivers-from-the-command-line-in-windows-8/ @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://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
Server name
Printer name \\192.168.1.21\ZDesigner GK420d
Share name ZEBRA
Driver name ZDesigner GK420d
Port name USB001
Comment
Location
Print processor winprint
Data type RAW
Parameters
Attributes 2584
Priority 1
Default priority 0
Average pages per minute 0
Printer status Idle
Extended printer status Unknown
Detected error state Unknown
Extended detected error state Unknown
Number of local printers and connections enumerated 6
C:\Windows\System>cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.21\ZDesigner GK420d"
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.
Deleted printer \\192.168.1.21\ZDesigner GK420d
C:\Windows\System>
Server name
Printer name \\192.168.1.22\BROTHER
Share name BROTHER
Driver name Brother DCP-L2510D series
Port name USB001
Comment
Location
Print processor winprint
Data type RAW
Parameters
Attributes 540
Priority 1
Default priority 0
Average pages per minute 0
Printer status Printing
Extended printer status Unknown
Detected error state Other
Extended detected error state Unknown
Number of local printers and connections enumerated 6
C:\Users\front1>