【发布时间】:2014-03-13 15:58:34
【问题描述】:
我对 VBscript 很陌生,我在一个域下工作。我希望能够通过让他们运行此脚本在每台用户机器上安装打印机。但是用户没有运行脚本的凭据。
有没有办法让我在 VBscript 中添加登录凭据
set objNetwork = Createobject("WScript.Network")
'objNetwork.AddwindowsPrinterConnection "\\print-serv\HP LaserJet 4350 PCL 5 it"
objNetwork.AddwindowsPrinterConnection "\\print-serv\uniFlow Secure Print"
'objNetwork.AddwindowsPrinterConnection "\\print-serv\Brother HL-4570CDW color"
wscript.echo "Printers have been Mapped
【问题讨论】:
-
不能用GPO部署吗?
-
不,我无权访问组策略。
标签: printing vbscript administrator runas