当我通过GPO部署到客户端BgInfo实用程序时,我收到以下错误。
Error code:800A408
这是我的脚本代码。
Set objShell = CreateObject(“Wscript.Shell”) objShell.Run “\\Server2008\deploy\bginfo\bginfo.exe \\Server2008\deploy\bginfo\test.bgi /NOLICPROMPT /timer:0”, 1, True
谢谢。
如果这是一个.vbs文件,请确保您在GPO的计算机configuration – > Windows设置 – >脚本(启动/closures) – >启动下,使用启动脚本(.cmd文件)中的cscript.exe filename.vbs部署应用程序。
另外,我会添加一些代码来检查它是否已经像这样安装了:
dim filesys Set filesys = CreateObject("Scripting.FileSystemObject") If not filesys.FileExists("c:\program files\bginfo\somefile.txt") Then Set objShell = CreateObject(“Wscript.Shell”) objShell.Run “\\Server2008\deploy\bginfo\bginfo.exe \\Server2008\deploy\bginfo\test.bgi /NOLICPROMPT /timer:0”, 1, True End If