coountdown for show-dialogbox

Topics: Archive - General
Feb 24, 2014 at 12:21 PM
Hello all,

I am new to this Deployment Toolkit and what I have seen so far is great and

However, I am looking for a possibility to show the user a simple textbox
with a certain countdown, even if there are no programs to be closed.

Just like with the old SCCM 2007, a simple warning for e.g. 20 minutes before
the installation kicks off.

Is this possible with this toolkit?
I have only seen the "timeout" parameter, but this obviously stops the script and
leads to an unsuccessful deployment I guess?

thanks for input and sorry if I have overlooked a existing discussion,

Feb 25, 2014 at 4:07 AM
You are looking for "Show-InstallationPrompt"

Something like this should do it:
$StartInstall = Show-InstallationPrompt -Message "Make sure you are ok to start." -ButtonRightText "Continue" -ButtonLeftText "Cancel" -Timeout "60" -ExitOnTimeout $false
if ($StartInstall -eq "Cancel") {Exit-Script -ExitCode "1602"}
Feb 26, 2014 at 11:27 AM
Hello Paul,

many thanks for your reply and pointing me in the right direction.
However, this solution is still missing the (user visible) countdown.

I am looking for a substitution of the SCCM 2007 countdown (when a mandatory program was assigend),
as this feature is no longer available in SCCM 2012.

Basically the "Show-InstallationWelcome" would do the job perfectly if it was includung a function to implement that countdown
always, not only in case that programs have to be closed.

Does anyone now a solution/workaround?

Many thanks in advance and sorry for the newbie question. ;-)

best regards
Feb 26, 2014 at 8:52 PM
Hi Chris,

The functionality you are looking for would require development work. If you are comfortable with PowerShell you could create a toolkit extension with such a function using the existing UI code as a template, for example the Show-InstallationRestart function but without the restart.


Feb 26, 2014 at 11:05 PM
To clarify for me, the Show-InstallationPrompt example has the timeout/countdown, but does not actually show the ticking clock, correct? You want the timeout with the ticking clock on the screen. Let me know if I am correct on this. I might try to throw something together, just for fun. :)
Feb 27, 2014 at 2:12 PM
Edited Feb 27, 2014 at 2:13 PM
Hi Powersheller and Paul,

many thanks for your nice replies. :-)

unfortunately I am a total noob in regards to powershell...
However, I guess we have a colleague at a remote site which might be able to help me out, I will ask him
tomorrow and point him in the direction of Powersheller's suggestion.

So Paul, you are correct. Its the ticking clock I would like to show my users before the install kicks off :-)
If you would do me a quick and dirty solution using the Show-InstallationPromt function, that'll do for me.
Anyway,many thanks in advance.

A perfect solution would be to extend the "Show-InstallationWelcome" with the ticking clock, independently of programs
that might possibly to be closed.
As Powersheller mentioned this requires development work, so I have to be patient and hope that he will put it on a
nice-to-have feature wishlist.

Again, many thanks and a great weekend,