REM Export SSID with passphrase into xml netsh wlan export profile name="YOUR_SSID.xml"
REM Delete existing profile netsh delete profile name="YOUR_SSID" REM Import new profile with correct passphrase netsh wlan add profile filename="path to xml from first step"