I have run the following command line,
netsh wlan show profile MyWiFi-name key=clear >key.txt
Output, key.txt
Profile MyWiFi-name on interface Wireless Network Connection:
=======================================================================
Applied: All User Profile
Profile information
-------------------
Version : 1
Type : Wireless LAN
Name : MyWiFi-name
Control options :
Connection mode : Connect automatically
Network broadcast : Connect only if this network is broadcasting
AutoSwitch : Do not switch to other networks
Connectivity settings
---------------------
Number of SSIDs : 1
SSID name : "MyWiFi-name"
Network type : Infrastructure
Radio type : [ Any Radio Type ]
Vendor extension : Not present
Security settings
-----------------
Authentication : WPA-Personal
Cipher : CCMP
Security key : Present
Key Content : password@1
My need is , I need only Key Content as a output in text file. Please help.
FOR EXAMPLE : expected output in key.txt file is,
password@1
