Detect the presence of USB ports

Hi, I need to build a report to show that we have USB protection available and I have the below relevance which works on Windows to show that McAfee USB protection is running, however with virtualized servers and other possible devices in BigFix, my numbers will be greatly off because I need to detect if the OS has available USB ports. Is there a way to do this? Maybe if I driver is installed?

exists running service "MfeFfCoreService"

You could try to detect the number of USB devices connected, see if you get back 0.

This is old, and some of the properties only work on windows, but this is a place to start: https://bigfix.me/analysis/details/2994709

Do you only disallow USB storage devices? or all USB devices?

This doesn’t quite have it it seems, but you could also look for the presents of external removable storage volumes: https://bigfix.me/analysis/details/2994706

There should be an analysis that could help with that somewhere.

You probably could also see if there is a USB Root Hub present and active if you are disallowing ALL USB devices.

Thanks! I’ll give that a try.