Using your latest version of the code.. Gives me -
Quote:


ERROR : unexpected command!
Script: C:\!Kix\ip.KIX
Line : 24





Line 24 is -
Code:

$u=WMIQuery("username","Win32_ComputerSystem",$b)[0]



thanks!

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's