Task Sequence - Installation Progress script error
Hi, I have an issue in one of my "Install Software" steps in my Task sequence. I'm trying to deploy software with aninstall.vbs script in my Task sequence,under my deployment the task execute the script fine, but the script just won't finishsuccesfully, it ends up with an "waiting" until the Maximum run time expires. The script worked fine in my old SMS 2003 environment. Below is the code im trying to execute in my install.vbs, during my Task sequence. On Error Resume NextDim WSHShell, FSO, StrCurPathSet WSHShell = CreateObject("WScript.Shell")Set FSO = CreateObject("Scripting.FileSystemObject")path = WScript.ScriptFullNameStrCurPath = Left(path, InstrRev(path, "\"))'Installing MSXML 6.0WSHShell.Run "Msiexec /i " & Chr(34) & StrCurPath & "msxml6.msi" & Chr(34) & " Transforms=" & Chr(34) & StrCurPath & "msxml6.mst" & Chr(34) & " /Passive",0,True'Installing WindowsXP-KB918997-v6-x86-ENU.exeWSHShell.Run Chr(34) & StrCurPath & "WindowsXP-KB918997-v6-x86-ENU.exe" & Chr(34) & " /Passive /Norestart",0,TrueSet WSHShell = NothingSet FSO = Nothing Any ideas on how i will be able to run the script without errors in my OSD?? /Steven
September 10th, 2008 12:20pm

Hi Steven, Don't know the anser to your question, but what you can do to troubleshoot: 1. Enable command prompt on your boot image 2. Press F8 in the task sequence 3. See what happens when you run the command line of the msi installation in the task sequence (you will have to make an net use to the distribution point yourself) 4. See what happens when you run the script from the command prompt Hope this provides some more information for you to troubleshoot. Question: 1. How do you call the .vbs with cscript in front of it? Hope this helps, Regards, Kenneth
Free Windows Admin Tool Kit Click here and download it now
September 10th, 2008 12:30pm

Hi Kenneth I have tried executing the script from my command prompt, and from there it works fine, which i think is strange, whats the different? If I run it manually or the Task executes it automatically? In my Taski call the script with wscript.exe" "install.vbs", and i have also tried with cscript.exe, and a lot of other parameters ex. "cmd /k wscript.exe install.vbs". /Steven
September 10th, 2008 12:44pm

Hi Steven, My experience is that while running in the task sequence command line tasks and script can behave different as they would run within a command prompt on an already installed machine. As far as i know wscript is the default when running .vbs and will present you with graphical output if the script generates it. cscript keeps this output on the command line. When you say: my command prompt: Do you mean the command prompt while running in the task sequence after pressing F8? Step...by...step we will become closer to the solution i hope. Regards, Kenneth
Free Windows Admin Tool Kit Click here and download it now
September 10th, 2008 3:30pm

Hello Kenneth Yep, i mean the "F8" command prompt. I think could the problem might be, that i not have installed the Script-Package in my boot (WinPE) image? Btw, thnx for your support Kenneth. /Steven
September 10th, 2008 3:58pm

Hi everybody....I am having the exact same issue with a VBS in my Task Sequence. The script just never finishes running. If I use F8 command prompt, the script executes fine. I have several other VBS scripts that run without issue in my task sequence. Did you ever find a solution to this issue? What did you mean by "not installed the Script-Package in my boot (WinPE) image"? Thanks!
Free Windows Admin Tool Kit Click here and download it now
November 30th, 2010 2:05pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics