one of the peculiarities of WMI is that it sometimes wants the user to local admin.

the PC needs to be WinNT sp4 or better

additionally, do you have the UDF in the script?
_________________________
How to ask questions the smart way <-----------> Before you ask