Tyvm for the code guys, it seems to work well.

I can now get the current connected SSID of the wireless nic, which is sort of what i am after. The problem is it only returns the connected SSID, not list all saved SSID's which would be ideal. It's basically run during logon to check that laptops have our ssid installed, and if not it attempts to add it using another script.

I'll have to keep playing with some of those WMI classes.