look at WMIQuery()... it does most of the work for you.

However, Jens is probably right. WMI isn't built into NT4, but only as an option in SP 3 or 4
_________________________
How to ask questions the smart way <-----------> Before you ask