How can I exclude desktops and laptops from discovery?

lizmiller
Kilo Explorer

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

10 REPLIES 10

Ashutosh Munot1
Kilo Patron
Kilo Patron

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


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?


Liz,



Need to check will get back to you.



Thank you,


Ashutosh


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

Is this works to exclude the desktop and laptops?