Site icon RDR-IT

MDT: Customize Sequence Based Deployment with TaskSequenceID

On MDT 2013 for the Priority=TaskSequenceID to be taken into account, you must modify the DeployWiz_SelectTS.vbs file

1. Backup the DeployWiz_SelectTS.vbs file located in DeploymentShare\Scripts

2. Open the file with Notepad / Notepad++ ….

3. Apply the changes below:

Search :

Function ValidateTSList

Dim oTS

Add after :

Dim sCmd
Dim oItem
Set oShell = createObject("Wscript.shell")

Search :

End Function

Add before :

	sCmd = "wscript.exe """ & oUtility.ScriptDir & "\ZTIGather.wsf"""
	oItem = oShell.Run(sCmd, , true)

4. Save file

5. Edit the CustomSetting.ini file

Search :

[Settings]
Priority=Default
Properties=MyCustomProperty

Replace with :

[Settings]
Priority=TaskSequenceID,Default
Properties=MyCustomProperty

6. Save file.

The sections present in the CustomSetting.ini file bearing the name [SEQUENCE_ID] will be applied.


Example:
The lines below tick Google Chrome and 7zip apps when choosing apps for Windows 10 deployment sequence.

[DEPLOYW10X64]
; Google Chrome entreprise
Applications001={c21a5d85-c00b-4d64-8730-3aa733f0535f}
; 7zip
Applications002={74f05453-45a5-4062-89cd-c6c097ae4aba}
Exit mobile version