Loading...

Pause a Task Sequence on the fly from a keyboard shortcut

Reply A+ A-

In this post I will show you how to pause a Task Sequence when you want as many times you want by pressing a keyboard shortcut like F4.
I will also show you a short tool called TS Pause that allows you to pause the TS on the fly.

Context
You want to test something in your Task Sequence and you need to pause your Task Sequence.
You don't want to pause the TS at a specific step but to pause it when you want during the process.
You want to be able to pause your TS as many times you want.
You want for instance to be able to pause the Task Sequence using the F4 key from your keyboard.

Pause the TS dynamically
In my previous post I explained how to pause the TS on the fly.

See this post here.
We will now see how to do it from a keyboard shortcut.

Where to get files ?



Prerequisites
Add the required part of code to pause the TS in the ztiutility.vbs file, as menioned here
PowerShell integrated in your boot image
Add files from the downloaded folder in your boot image

How it works ?

Pause from keyboard shortcut
1. Run a deployment
2. Press F4 to pause the TS
3. A msgbox will be displayed (Note that there may be a little delay after before the msgbox)
4. Click on OK to continue the TS

See below an overview:


Pause from TS Pause tool
In this example we will open a quick GUI at the beginning of your deployment and click on the pause button to pause the TS when you want.
1. Run a deployment
2. Press F4 to display the TS Pause GUI
3. Click on the pause button to pause the TS
4. A msgbox will be displayed
5. Click on OK to continue the TS

See below an overview:


How to integrate it ?
1. Add files below from the downloaded content in your boot image
- run_keys.cmd
- TS_Pause.exe
- winpe_keys.exe
- winpeshl.ini
2. Update your Deployment Share  or boot image

Choose your shortcut
Some weeks ago I published a post that explained how to add your own keyboard shortcut in WinPE.
See this post here.
You will learn how to choose the apropriate shortcut.
ztiutility 1439170733354193905

Enregistrer un commentaire

Accueil item

Award

Learn KQL in one month

Sponsors

You want to support me ?

Mes articles en français

Books in French


Stats