Hi Allan

Many thanks for your reply I have read and tried with the info you have written but it does still not work!?

$ Output = wshpipe ("\\servername\netlogon\GETBSSID.vbs 1)
* 1 is for the computer's internal wifi cardnr.

How can I return the MAC value from the called vbs script in shell?

When run it from a commandprompt it pops up with the BSSID in a window ?
Wscript.echo "BSSID:" & BSSID

Sincerely,
roundup