Warning! Use with caution! Revealing passwords in the wrong hands could be a serios security risk!
(Wifi passwords connected with certificate auth will not be exported!)
As title says, this script exports all known wifi ssid's and passwords to xml (good if passwords are lost but still connected)
Here we go:
netsh wlan export profile key=clear folder="C:\TempPath"