修复win10无法局域网打印问题,解决WIN10无法连接WIN7共享打印机问题,修复WIN10无法安装WIN7共享打印机问题。
通过这个批处理问题,处理后,已经修复了3台WIN10打印机不能打印的问题。
@Echo off
Color A
Title Fix Print spooler
rem 替换win32spl.dll
rem 重启打印服务
Echo --------------------------------------------------------------------------
Echo 微信:587125
Echo 停止打印服务
net stop spooler
Echo --------------------------------------------------------------------------
Echo 替换 win32spl.dll
rem win32spl.dll
Echo --------------------------------------------------------------------------
timeout /t 3 /nobreak
Takeown /A /F C:\Windows\System32\win32spl.dll
icacls "C:\Windows\System32\win32spl.dll" /grant "administrators":F
icacls "C:\Windows\System32\win32spl.dll" /grant SYSTEM:F
ren C:\Windows\System32\win32spl.dll win32spl.dll.old
copy "%~dp0\win32spl.dll" C:\Windows\System32\win32spl.dll /Y
Echo --------------------------------------------------------------------------
Echo 增加注册表 RpcAuthnLevelPrivacyEnabled = 0
Echo --------------------------------------------------------------------------
rem add regkey
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print" /v RpcAuthnLevelPrivacyEnabled /t REG_DWORD /d 0 /f
Echo --------------------------------------------------------------------------
Echo 启动打印服务
net start spooler
Echo --------------------------------------------------------------------------
Echo 完成操作,请进行打印测试吧!
pause
1