Skip to content

Instantly share code, notes, and snippets.

@DrumRobot
Created March 2, 2022 08:04
Show Gist options
  • Select an option

  • Save DrumRobot/37866b0b80e1e1246072ac189f32081f to your computer and use it in GitHub Desktop.

Select an option

Save DrumRobot/37866b0b80e1e1246072ac189f32081f to your computer and use it in GitHub Desktop.
프린터 포트 삭제 및 재추가
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