Copy this code and paste in notepad and save that file to .bat extenstion at your desktop.
Code
@echo off
echo List of saved Wi-Fi profiles:
netsh wlan show profiles
echo.
set /p profileName=Enter the Wi-Fi profile name you want to view security details for:
echo.
for /f "delims=" %%a in ('netsh wlan show profile name^="%profileName%" key^=clear ^| findstr /c:"Key Content"') do (
echo %%a >> "%UserProfile%\Desktop\WiFiSecuritySettings_%profileName%.txt"
)
echo Wi-Fi security settings have been exported to the desktop.
pause
Code for showing all wifi details
@echo off
setlocal enabledelayedexpansion
echo List of saved Wi-Fi profiles:
netsh wlan show profiles
echo.
set /p "profileName=Enter the Wi-Fi profile name you want to view details for: "
echo.
for /f "tokens=*" %%a in ('netsh wlan show profile name^="%profileName%" key^=clear') do (
set "line=%%a"
echo !line!
) >> "%UserProfile%\Desktop\WiFiDetails_%profileName%.txt"
echo Wi-Fi details have been exported to the desktop.
pause