How to Easily Pause a Task Sequence Pause

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

 Hide Progress Bar
 $TSProgressUI = new-object -comobject Microsoft.SMS.TSProgressUI
 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 Manager 1906 (SCCM) or later then check at the Microsoft Debug a task sequence ( although still in preview )

Leave a Reply

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

You are commenting using your 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: