我正在尝试通过批处理文件添加网络打印机,前提是我将数据(打印机 IP、打印机名称、计算机 IP)输入到条目中。
rundll32 printui.dll,PrintUIEntry /if /b "KONICA MINOLTA C451 PS(P)" /c\\%computerNameIP% /h "x86" /f %windir%\inf\prnkm002.inf /r "IP_%computerNameIP%" /m "KONICA MINOLTA C451 PS(P)" /n\\%computerNameIP%\%printerName% /F %windir%\inf\prnkm002.inf
现在,一旦此命令完成,我会收到以下错误:
操作无法完成(错误 0x00000032)。不支持此操作。
我通过运行 GUI 运行了类似的代码:
rundll32 printui.dll,PrintUIEntry /il /b "KONICA MINOLTA C451 PS(P)" /c\\%computerNameIP% /h "x86" /f %windir%\inf\prnkm002.inf /r "IP_%computerNameIP%" /m "KONICA MINOLTA C451 PS(P)" /n\\%computerNameIP% \%printerName% /F %windir%\inf\prnkm002.inf
我必须选择一个本地本地打印机:我将其调整为 TCP/IP,并且驱动程序在我设置后为默认设置。选择我的驱动程序后,我也收到错误消息。
我只是无法确定到底什么是不支持的。
Windows 7 32 位。我对注册表、打印管理、组策略进行了调整,但对于阻止远程添加到网络打印机的原因,这些似乎都不是具体的。