错误800A01CE,通过vbs通过ip添加打印机
当我尝试使用一个小代码在 Windows 10 Enterprise 64 位上添加打印机时。我遇到错误 800A01CE。请帮我解决这个问题。这是我的来源
Option Explicit
Dim strPrinterUNC, objNetwork
strPrinterUNC = "\\10.95.200.11\HP LaserJet 400"
Set objNetwork = createObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection strPrinterUNC
objNetwork.SetDefaultPrinter strPrinterUNC
Set objNetwork = Nothing
MsgBox ("Add printer successfully")
我的错误图像。
When I tried a small code to add printer on window 10 enterprise 64bits. I meet error 800A01CE. Please help me to resolve this problem. This is my source
Option Explicit
Dim strPrinterUNC, objNetwork
strPrinterUNC = "\\10.95.200.11\HP LaserJet 400"
Set objNetwork = createObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection strPrinterUNC
objNetwork.SetDefaultPrinter strPrinterUNC
Set objNetwork = Nothing
MsgBox ("Add printer successfully")
My error as image.
I tried change strPrinterUNC manytime, but I still got the error above. Please suggest me the way to custom my code.Thank you,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论