@echo off
echo 启用打印服务
sc config spooler start= auto
net stop spooler & net start spooler
rem 修改IP和打印机名 需要密码的话使用这个 net use \\192.168.1.1\IPC$ "密码" /user:"帐号"
net use \\192.168.1.1\IPC$
rundll32 printui.dll,PrintUIEntry /in /n "\\192.168.1.1\FX DocuCentre S2011"
echo 连接成功
pause
BAT添加共享打印机
最新推荐文章于 2024-01-02 11:28:36 发布