Welcome

How to Export and Import saved Wi-Fi networks from one device to another.

To see existing Wi-Fi profiles run netsh wlan show profiles command.

Export

$FolderPath = "$env:USERPROFILE\Documents\WiFiNetworks"
if (!(Test-Path $FolderPath)) {
    New-Item -Path $FolderPath -ItemType Directory
}
netsh wlan export profile folder="$FolderPath" key=clear

Import

$WiFiNetworks = Get-ChildItem "$env:USERPROFILE\Documents\WiFiNetworks" | Select-Object Name
foreach ($network in $WiFiNetworks) {
    netsh wlan add profile filename=$($network.Name) user=all
}