Pausing the SCCM OSD task sequence
Hi, Iwould like somemethodsimilar to http://blogs.technet.com/deploymentguys/archive/2008/07/07/useful-script-number-6-pausing-the-task-sequence.aspxbut without using MDT or BDD. Can anyone please help me here with respects to pausing the SCCM OSD task sequence? Regards, Chirag
September 30th, 2008 1:25pm

Chirag,Just create a script that has something similar to the following:wscript.sleep 10000This line will pause for 10,000 milliseconds, or 10 seconds.Trevor SullivanSystems EngineerOfficeMax Corporation
Free Windows Admin Tool Kit Click here and download it now
September 30th, 2008 2:15pm

Thanks Trevor. Myproblem shall get solved, if youhavean example of pausing the SCCM task sequencetill the usertypes in Ctrl+C or exit orlikes? Also, how its to be executed?For e.g.putting it in a .vbs and running it through Run Command Line action of SCCM task sequence. Regards, Chirag
September 30th, 2008 3:03pm

I use the following script, and when I want to continue, I press F8, get a command prompt and echo . > x:\go.txt Set fso = CreateObject("Scripting.FileSystemObject")filespec = "X:\go.txt" 'Check every 1 second to see if the file existsWhile Not fso.FileExists(filespec)Wscript.Sleep 1000Wend 'When it does exist, delete it and go onfso.DeleteFile(filespec)
Free Windows Admin Tool Kit Click here and download it now
September 30th, 2008 4:54pm

Query, will this pause work even when the task sequence is runningunder OS (like Windows 2008) environment instead of winPE environment. We have a real world scenario and hencewe need to Pause in both Windows 2008 and winPE. Any thoughts or suggestions? Regards, Chirag
September 30th, 2008 5:55pm

yes it will, but my sample looks for X:\go.txt, and you don't normally have X: while in Windows... you might want to change to systemdrive environment variable instead... (or similar)
Free Windows Admin Tool Kit Click here and download it now
September 30th, 2008 6:40pm

I was looking for a method to pause the Task Sequence so I could observe the next step, without sitting at the machine watching for 30 minutes or whatever. The easiest method I came up with was a Run Command Line with this command: cmd /c start "cmd" /wait cmd This launches a command prompt you can see and interact with and the TS waits until the cmd window is closed. This works in WinPE at least, not sure if it works after the OS has been deployed, need to test that, but if it doesn't, you can use a package with a vbscript and then call it in a Run Command Line like this: Option Explicit Dim WshShell, objShell 'Create objects set objShell = CreateObject("Wscript.Shell") 'Run(command, window visibility, wait) call objShell.Run("cmd.exe /k date /t & time /t", 1, True) The vbscript will launch a command window and wait till it is closed, thus pausing your TS.
June 20th, 2012 7:46pm

There is a trick to using hta for user interaction in a task sequence. http://blogs.technet.com/b/cameronk/archive/2011/01/25/can-i-use-serviceui-exe-to-launch-other-programs-besides-the-udi-setup-wizard.aspx I use this for deploying apps that require user interaction - this allows the user to postpone the installation. In your case you could set a timer in the hta script or just a button to click on to continue the next step on the ts. The task sequence moves onto the next step once it recieves and exit code from uiservice.exe which is closed one the hta script ends or quits.
Free Windows Admin Tool Kit Click here and download it now
June 22nd, 2012 10:26am

You can run a simple one-line vbscript: MsgBox ("Pause")
June 22nd, 2012 6:44pm

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

Other recent topics Other recent topics