Configuration Manager (SCCM) | OSD | Task Sequence Pause

Sometimes, you may wish to Pause a Task Sequence, especially when using a Boot Image with the Option ‘Enable command support (testing only)‘ enabled

This can be easily achieved by running a simple PowerShell script

try{
 Hide Progress Bar
 $TSProgressUI = new-object -comobject Microsoft.SMS.TSProgressUI
 $TSProgressUI.CloseProgressDialog()
 Load assembly
 Add-Type -AssemblyName PresentationCore,PresentationFramework
 Create message box
 $msgBody = "Have a break, have a ……. and select OK when ready to resume!"
 $msgTitle = ""
 $msgButton = 'OK' # OK, OKCancel, YesNoCancel, YesNo
 $msgImage = 'None' # None, Error, Question, Warning, Information
 $Result = [System.Windows.MessageBox]::Show($msgBody,$msgTitle,$msgButton,$msgImage)
 }catch{Exit 1}

Better still if you are using Configuration Manger 1906 (SCCM) or later then check at the Microsoft Debug a task sequence

https://docs.microsoft.com/en-us/mem/configmgr/osd/deploy-use/debug-task-sequence

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: