When I deploy to a client the BgInfo utility via a GPO,I am receiving the following error.

Error code:800A408

here is my script code.

Set objShell = CreateObject(“Wscript.Shell”)

objShell.Run “\\Server2008\deploy\bginfo\bginfo.exe 
\\Server2008\deploy\bginfo\test.bgi /NOLICPROMPT /timer:0”, 1, True

thanks.

link|improve this question

76% accept rate
Where is that error code indicated? Can you run bginfo from your script using the /log switch to capture more info? – jscott Apr 18 '11 at 21:21
feedback

1 Answer

up vote 1 down vote accepted

If this is a .vbs file make sure you deploy the aplication using cscript.exe filename.vbs within startup scripts (.cmd file) under GPO's Computer Configuration -> Windows Settings -> Scripts (Startup/Shutdown) -> Startup.

Also, I would add a little code to check if it's already installed like this:

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
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.