我對VBscript很陌生我在一個域下工作。我希望能夠通過讓他們運行這個腳本來在每臺用戶機器上安裝打印機。但用戶沒有運行腳本的憑據。如何使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進行部署嗎? –
不,我無權訪問組策略。 – user3416223