I am trying to create a task sequence step that only runs when the first 6 characters of the computer name equal a certain string.
From what I can tell, I can't use a wildcard or logic in the Task Sequence Variable Condition under the Options tab.
Given the following computer names, ABCDEF001, ABCDEF002, and BCDEFG001, the task sequence step should only run on ABCDEF001, and ABCDEF001. It should not run on BCDEFG001.
I have tried:
Task sequence variable OSDComputerName equals ABCDEF%
Task sequence variable OSDComputerName equals ABCDEF*
Task sequence variable OSDComputerName equals ABCDEF$
Task sequence variable #Left("%OSDComputerName%",6)# equals ABCDEF
Any suggestions on how I might go about accomplishing this?
I have also tried creating another variable in customsettings.ini that takes the first six characters of the computer name but it does not work because customsettings.ini is processed before the computer name is submitted.