I’ve created messages and pauses a couple of ways, a “fancy” way with content, based on Niehaus’s blog, and a simple way just using notepad with no content, which is really handy during times you don’t want (or not able) to pull down content yet. Nash (@kidmystic) would say to use PowerShell (example at bottom), as he has a nifty one line code that will do it for you. However, if you don’t have PowerShell in WinPE, and want to keep it super simple, just do it this way… with notepad.
In the Task Sequence, where you want to create a pause, or message, create two “Run Command line” Steps.
- Run Command Line Step 1 = “Create Pause - Step 1”
- Run Command Line Step 2 = “Run Pause - Step 2”
This will work even if the HDD is not formatted, as it does not require content. To Confirm, I Diskpart –> Clean the HDD so nothing was on it, then ran these steps in WinPE. Worked perfect. This is great for if you want to pause / blow up your TS early if it it fails any validations, like Bios Password Missing, or UEFI not enabled, etc.
powershell.exe -command (new-object -ComObject Microsoft.SMS.TsProgressUI).CloseProgressDialog() ; (new-object -ComObject wscript.shell).Popup('Message Box Text Content goes Here, you can make this as detailed as you want.',0,'Message Box Title in Upper Left',0x0 + 0x30) ; Exit 1
- Set your Exit code to what make sense. Exit 1 will “Fail” your TS and make it quit, which might be good in times that you want it to fail so something manually can be done. Exit 0 will be success and continue on.
During IPU (NOT OSD, but when running a TS post OSD, and in Windows), you'll need to use ServiceUI, steal it from the MDT Toolkit.
Command: ServiceUI.exe -process:TSProgressUI.exe %WINDIR%\System32\cmd.exe