Hi All,
I am building 1 task sequence for all our different departments.
Therefore I created different "install application" steps with WMI query on the PC hostname to find the department like for example ICT:
select * from win32_computersystem where Name like "ICT%"
There are also other applications that need to be installed for every department except for ICT so I would like to create a WMI query like this:
select * from win32_computersystem where NOT Name like "ICT%"
This is not working as expected so I tried a different option.
"if NONE of the conditions is true:"
select * from win32_computersystem where Name like "ICT%"
The condition evaluates correctly for a new laptop deploying Windows 10 but not for an older PC deploying Windows 7.
Is it an issue with Windows 7 or with the PC?
If I open cmd during task sequence and I execute the query I do get a correct response but SCCM still evaluates not correct.
Any ideas?
Thanks!