Sharing Network Security Key


  1. Posts : 6
    Windows 10
       #1

    Sharing Network Security Key


    Hello everyone. I wish to connect my computer to a wireless router. Unfortunately, I don't not know the password for the wireless router. While I do know how to reset the password, other people will no longer be able to connect to the router, if I were to change the password. So if you would tell me how to access Windows 10, on a computer which is connected to the wireless router, and store the key on a thumb drive, I would very much appreciate it.

    Basically, how do I use Windows 10 to save the network security key on a flash drive?

    Thank you very much.
      My Computer


  2. Posts : 5,478
    2004
       #2

    From elevated command prompt:

    netsh wlan export profile key=clear folder="%UserProfile%\Desktop"

    Then copy the file(s) generated (one per interface) from the desktop to your thumb drive.

    Alternatively you can open the file in notepad and just write down the password (shown in red here).

    Code:
    <?xml version="1.0"?>
    <WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">
    	<name>Router-A</name>
    	<SSIDConfig>
    		<SSID>
    			<hex>4254D39870F78039001837</hex>
    			<name>Router-A</name>
    		</SSID>
    	</SSIDConfig>
    	<connectionType>ESS</connectionType>
    	<connectionMode>auto</connectionMode>
    	<MSM>
    		<security>
    			<authEncryption>
    				<authentication>WPA2PSK</authentication>
    				<encryption>AES</encryption>
    				<useOneX>false</useOneX>
    			</authEncryption>
    			<sharedKey>
    				<keyType>passPhrase</keyType>
    				<protected>false</protected>
    				<keyMaterial>abcdefg123</keyMaterial>
    			</sharedKey>
    		</security>
    	</MSM>
    	<MacRandomization xmlns="http://www.microsoft.com/networking/WLAN/profile/v3">
    		<enableRandomization>false</enableRandomization>
    	</MacRandomization>
    </WLANProfile>
    More details here:
    Backup and Restore Wireless Network Profiles in Windows 10 - Windows 10 Network Sharing Tutorials
      My Computer


  3. Posts : 6
    Windows 10
    Thread Starter
       #3

    I don't currently have access to the network, I mentioned in the original post, but I look forward to trying out this solution. When I do I will let you know how well it works. Thank you for sharing this solution with me.
      My Computer


  4. Posts : 31,666
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #4

    perezprograms said:
    I don't currently have access to the network, I mentioned in the original post...
    Welcome to TenForums @perezprograms

    You don't need access. If you have successfully connected in the past you should already have the profile for it stored on your PC. Try...

    netsh wlan show profiles
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:27.
Find Us




Windows 10 Forums