I'm not sure where you pulled that snippet from ... but it looks like you pulled it from the middle of my UDF.

Take the code I posted earlier, make the changes I mentioned, then take the ENTIRE text of the UDF you downloaded earlier (WMISysInfo) and paste it at the end of the script.

You CANNOT mess with UDFs - you need to use them as they are, in their entirety.

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