How can I exclude desktops and laptops from discovery?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-25-2017 05:25 AM
Hi,
I've noticed there is an out-of-the-box CI "Personal Computer".
How can I make sure laptops and desktops are not being discovered?
Will they automatically be classified as Personal Computers?
I need to run discovery and I don't want them to be discovered.
How can this be done?
Would appreciate any help.
Thanks
Liz
- Labels:
-
Discovery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-25-2017 06:19 AM
HI Liz,
You have to check which probe and sensor are used to identify this. Then in sensor code you have to exclude those computers and laptops.
Thank you,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2017 06:30 AM
Hi,
Indeed I've come to conclusion that this is the solution.
I've edited the probe Windows Classify and added this WMI query:
Win32_OperatingSystem.ProductType
This differs between servers and desktops.
The output for desktops is 1, as for Domain controllers is 2 and 3 for servers,
This is according to this Microsoft link: Win32_OperatingSystem class (Windows)
But now I have to edit the same sensor, I'd like to create an if condition: something like this
if (Win32_OperatingSystem.ProductType!=1) then go on with script, or if it's Win32_OperatingSystem.ProductType=1 then break or return.
Not sure at which stage to edit this line!
Could anyone assist?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2018 04:36 AM
Liz,
Need to check will get back to you.
Thank you,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2018 09:40 AM
Were you able to look at this. We are in the same boat where we want SCCM and AirWatch to discover workstations and ServiceNow Discovery to discover servers. The ip addresses are all over the place so I need to filter based on what comes from WMI - Win32_OperatingSystem.ProductType class.
Thanks
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2020 10:47 AM
Is this works to exclude the desktop and laptops?