Skip to content

WMI QUERY using NOT doesnt work

Featured Replies

Does anyone have an idea why this query doesn't work when it's written everywhere it should?

This is the query 

SELECT * FROM Win32_ComputerSystem WHERE NOT Model LIKE "%Latitude 5520%"

And I have tried with the same results

SELECT * FROM Win32_ComputerSystem WHERE Model NOT LIKE "%Latitude 5520%"

Thank you.

 

image.png.445a057858f6e4d99171f0d5a883fbeb.png

For me [WHERE Model NOT LIKE] is not a correct syntax.
[WHERE N
OT (Model LIKE "%Latitude 5520%") ] should work ...

I tested it in my environment and it's working.
Copy paste issue ? Try to type it ...

  • Author

I will test it and let you know, i don't know if this is because this step is too soon in the TS.

Its placed even before the OS in installed.

The step "IF ITS UEFI" is being applied to machines that don't match the query.

 

Thank you.

image.thumb.png.1ad2b4776a1f6a0973c87a8997d64697.png

  • Author

Problem solved. Had to include the 2 models in the same wmi query.

 

Thank you.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.