重启打印服务脚本

当打印机不能正常打印时,可以尝试重启打印机相关的服务来解决

重启的服务有Server、pooler

顺便还清理的打印机的文件缓存

@echo off
net stop Server
net start Server
net stop Spooler
del /f /s /q C:\Windows\System32\spool\PRINTERS\*.*
net start Spooler

 

posted @ 2021-10-02 17:02  人类补习计划  阅读(590)  评论(0)    收藏  举报