4

This should be ridiculously easy to find. I'd like to set up a condition in SCCM for a few task steps based on variables I have defined. What is the correct wildcard character to use in the value here? I'm hoping to avoid needing to go the wmi search route since this will make it easier for others to maintain.

These are text based and I'm just wanting to parse it like the following.

 OSDComputerName like "Secure%Machine"
 OSDComputerName like "Secure*Machine"
Tim Brigham
  • 15,465
  • 7
  • 72
  • 113

2 Answers2

2

This actually depends on where you want to use the query. If it is in a query for a collection % is correct. The same is true if you want to use a wmi query within a TS step. Both of these fall back to WQL where % is the wildcard character.

However if you use a condition on a TS Variable (or collection variable) the correct wildcards are * and ?. This is undocumented but confirmed by the ConfigMGrTeam (see here, and here)

Syberdoor
  • 196
  • 5