admin管理员组

文章数量:1647222

@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