0

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.

Cell-o
  • 327
  • 4
  • 15
  • 32
  • 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

1 Answers1

1

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
Ben Pilbrow
  • 12,041
  • 5
  • 36
  • 57
human.0.id
  • 26
  • 1