I am grateful for the tips given in the forum relating to WMI scripting and have used them to good effect.
The first question relates to a WMI filter which should exclude computers from processing a group policy object.
I created the following but it filtered out the opposite ie computers that matched the computer name were included and others which didn't were excluded.
Select * From Win32_ComputerSystem Where Name LIKE 'BX-BAT%'
I overcame the problem by using the following which works fine but cannot understand why.
Select * From Win32_ComputerSystem Where Not Name LIKE 'BX-BAT%'
The second question is now that I have got the script working how can I add further strings relating to Win32_ComputerSystem in order to include/exclude additional computer names BX-TRM% WD-TRM%
Thanks in advance.
The first question relates to a WMI filter which should exclude computers from processing a group policy object.
I created the following but it filtered out the opposite ie computers that matched the computer name were included and others which didn't were excluded.
Select * From Win32_ComputerSystem Where Name LIKE 'BX-BAT%'
I overcame the problem by using the following which works fine but cannot understand why.
Select * From Win32_ComputerSystem Where Not Name LIKE 'BX-BAT%'
The second question is now that I have got the script working how can I add further strings relating to Win32_ComputerSystem in order to include/exclude additional computer names BX-TRM% WD-TRM%
Thanks in advance.