good job Howard... I had wanted to get around to doing that...

Did you want to post it seperately, or have me update the original?

code:
$ip=wmiquery2("IPAddress",	"Win32_NetworkAdapterConfiguration",@wksta,"IPEnabled","True")
$sn=wmiquery2("IPSubnet", "Win32_NetworkAdapterConfiguration",@wksta,"IPEnabled","True")
$gw=wmiquery2("DefaultIPGateway","Win32_NetworkAdapterConfiguration",@wksta,"IPEnabled","True")
$ma=wmiquery2("MACAddress", "Win32_NetworkAdapterConfiguration",@wksta,"IPEnabled","True")

? $ip
? $sn
? $gw
? $ma



[ 18. November 2002, 15:57: Message edited by: Radimus ]
_________________________
How to ask questions the smart way <-----------> Before you ask