If you have ever had the need to test the PXE booting capabilities using System Center 2012 Configuration Manager using a Required Deployment, but did not want the OS Deployment part, then this blog is for you. With Available Deployments, the user has to press an additional key to get the system to PXE boot. Once the system boots into WinPE, the wizard is displayed with the list of available Task Sequences. This makes it nice and easy to test PXE booting functionality and network connectivity of your boot image without starting an actual Task Sequence. However, with a Required Deployment, no additional key press is required and when you are in WinPE, it is off to the races. Not a big deal if you are testing on virtual machines, but what if you want to test on a new physical device that you need to roll out and you do not want to go through the whole OSD process?
You could simply put a pause in the beginning of a full Task Sequence, but why bother since there is likely more policies that need to be download. Also, why take the risk? Here is a simple three step Task Sequence that you can use to do all of the Required (and Available) PXE boot testing without the OS Deployment.
Start by creating a new custom task sequence and add the boot image you want to test with under the Advanced tab of the Task Sequence Properties:
Next, edit the Task Sequence and add a Apply Operating System Image step, selecting an existing image package. This step is required to make CM think that it is an OSD Task Sequence.
Click on the Options tab in order to create a condition so that the step will always evaluate to false. This can be done by testing for a Task Sequence variable name NEVERTRUE equals TRUE (or if you want to mess with your coworker you can use their NAME equals AWESOME – but just in case they really are awesome you might not want to do this ):
Create a second step using the Run Command Line step so the TS will pause. Having this pause is useful when multi-tasking and you look away and miss it. It also gives you the option to do other cool stuff like dump the Task Sequence variables. Enter the following for the command line: cmd.exe /c “start /wait cmd.exe”
(Be careful of “smart” quotes if copy and pasting.)
Set continue on error on the Options tab.
Create a third step using the Run Command Line step so the TS will reboot WinPE. Enter the following for the command line: wpeutil reboot
Set continue on error on the Options tab on this step as well.
Save your changes and then then test it by creating a Required Deployment to a test collection to enjoy non destructive Required PXE Booting!
Originally posted on https://miketerrill.net/