Created
March 2, 2022 08:04
-
-
Save DrumRobot/37866b0b80e1e1246072ac189f32081f to your computer and use it in GitHub Desktop.
프린터 포트 삭제 및 재추가
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set DRIVER="EPSON L6170 Series" | |
| set IP=192.168.0.11 | |
| set PRINTER="EPSON L6170 Series" | |
| @echo off | |
| cd "C:\Windows\System32\Printing_Admin_Scripts\ko-KR" | |
| Cscript Prnmngr.vbs -d -p %PRINTER% | |
| Cscript Prnport.vbs -d -r IP_%IP% | |
| Cscript Prnport.vbs -a -r IP_%IP% -h %IP% -o raw | |
| Cscript Prnmngr.vbs -a -p %PRINTER% -m %DRIVER% -r IP_%IP% | |
| Cscript Prnmngr.vbs -t -p %PRINTER% | |
| Cscript Prnqctl.vbs -E -p %PRINTER% | |
| pause | |
| @echo on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment