This topic created in 485 days ago, the information mentioned may be changed or developed.
一台惠普的打印机,机器都是 Windows 7 系统。
主机通过 USB 连接然后共享打印机,局域网内其它机器添加的网络打印机,但很奇怪每次都需要主机先打一遍,其它的机器才能打印,主机一旦重启,局域网内的其它机器就无法打印,需要主机再打一遍,搜了下网络上的办法(使用 local port 添加本地打印机),但根本没有用,甚至主机打印一遍的情况下也无法打印,实在不知道是怎么回事。
5 replies • 2025-01-06 18:18:43 +08:00
 |
|
1
datocp Jan 6, 2025 1
这可是个高深的问题。我觉得可能原因就是电源节能选项,让电脑网络断开,又或者打印机进入节能选项,可能需要按一下电源唤醒。
平时不管直接导入网络共享 netshare.reg Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"restrictanonymous"=dword:00000000
"restrictanonymoussam"=dword:00000001
"forceguest"=dword:00000000
"limitblankpassworduse"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters]
"autoshareserver"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters]
"AutoShareWks"=dword:00000001
win10 以后增加了这段 Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print]
"RpcAuthnLevelPrivacyEnabled"=dword:00000000
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\PointAndPrint]
"RestrictDriverInstallationToAdministrators"=dword:00000000
打印服务器,重置打印机.cmd,有些打印机会进入暂停打印状态,需要注释掉,最后一行,但是似乎在部分驱动下该设定无效。。。 net stop lanmanserver /y net stop lanmanworkstation /y ::运行 spool 删除 net use * /delete /y net stop Spooler del /s /q %systemroot%\system32\spool\PRINTERS net start Spooler net start lanmanserver /y net start lanmanworkstation /y ::cancel all print jobs ::cscript C:\Windows\System32\Printing_Admin_Scripts\zh-CN\prnqctl.vbs -x -p "Adobe PDF" ::pause printing ::cscript C:\Windows\System32\Printing_Admin_Scripts\zh-CN\prnqctl.vbs -z -p "Adobe PDF" ::Resumes printing ::cscript C:\Windows\System32\Printing_Admin_Scripts\zh-CN\prnqctl.vbs -m -p "Adobe PDF"
|
 |
|
2
datocp Jan 6, 2025
其它的试试 net use \\printerip /user:admin admin 将客户端登录服务器完成后继的打印连接
对应的就是 control 里的 用户帐户/管理你的凭据
|
 |
|
4
Sum0l Jan 6, 2025
主机开机后自动执行一下打印?。。。
|
 |
|
5
Altar Jan 6, 2025 via Android
@ Sum0l 哈哈这个方法我也想过,就是每天开机有点浪费纸 😂
|