I'm not getting any results from:
FUNCTION fnSMSGetResourceID($ComputerName, $WMISMSServerName)

there is no error here $WMISMSServerName.ExecQuery...

but it doesn't return any data
_________________________
How to ask questions the smart way <-----------> Before you ask