Did you copy the entire script, including the modified WMIUptime UDF? I added debugging statements to the UDF that will display when the UDF is called. If the UDF encounters an error, it will exit with that error and the debug message will not display. If the initial connection is successful, the UDF will make the queries and display the values. If the values are empty, you will still see the "B:" and "C:" lines with no data after them.

The fact that you're not getting the data prior to the error message tells me you don't have the updated UDF. Copy the script+UDF that I posted, save it, define the $Host value, and run it to generate the debug data.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D