Follow the given procedure adequately for How to get wifi password using cmd:
Open your administer command window and start typing the following “netsh wlan show profile” and then press enter.
After the result type “netsh wlan export profile folder=c:\key=clear” no the result will be something interface profile “...” successfully.
Half of the process is done now, open file explorer in that select this PC. You will see an option for Windows 10(c:). Note-it can be different.
By scrolling down you'll see the files saved as ‘wifi...’. Open it with the notepad.
After scrolling down in its last lines you can view <keymaterial>”thepassword”</keymaterial>
Copy and paste it into the password section of wifi.
You have accomplished the task.
It can be used for figuring out other passwords for wifi with the same easy process.