问题描述
在printui.dll,PrintUIEntry /?的帮助下,我们有以下示例,可以在/ c开关的帮助下远程安装打印机驱动程序。
In the help of printui.dll,PrintUIEntry /?, we have the following examples for remotely installing printer driver with the help of /c switch.
Add printer driver using inf:
rundll32 printui.dll,PrintUIEntry /ia /c\\machine /m "Brother DCP-128C" /h "x86" /v "Type 3 - User Mode" /f c:\infpath\infFile.inf
Add printer driver using inf:
rundll32 printui.dll,PrintUIEntry /ia /K /c\\machine /m "Brother DCP-128C" /h "x86" /v 3
我无法将其与错误代码0x32(不支持此功能)。我正在做以下事情:
- 使用net use使用远程服务器的管理员凭据创建与远程服务器的连接。
- 在远程机器上禁用UAC。
- 使用和不使用/ K运行上述命令。
我可以看到它正在将驱动程序文件复制到远程机器print $文件夹中,但远程安装最终失败,错误提示错误代码为0x32。
是否有办法或特定条件使这件事有效?因为它在帮助文档中作为示例提到,我认为我可能会遗漏一些东西。
还有其他方法可以实现所需的任务吗?
I am failing in getting this to work with an error code of 0x32 (This function is not supported). I am doing the following :
-Using "net use" to create a connection to the remote server using the remote server's admin credentials.
-Disabling the UAC in the remote machine.
-Running the above command with and without /K.
I can see that it is copying the driver files into the remote machines "print$" folder but the remote installation finally fails with an error prompt with error code of 0x32.
Is there a way or a specific condition to make this thing work ? Because it is mentioned as an example in the help documentation, I think that I might be missing something.
Are there any other ways to achieve the desired task?
推荐答案
这篇关于Printui.dll,PrintUIEntry用于在远程计算机上安装驱动程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!