PowerShell: Generating QR Code for Wi-Fi Network in Windows 10

You can use PowerShell to generate QR codes to share with your mates or colleagues. Let’s contemplate an instance of utilizing QRCodeGenerator PowerShell module to generate a  QR code picture that can be utilized by your colleagues or visitors to hook up with your Wi-Fi community (as you don’t wish to dictate your password to every pal 😉 ).

The QRCodeGenerator module could also be used to generate PNG information with QR codes for the next object sorts:

  • vCard contact playing cards (enterprise playing cards)
  • Geodata
  • Wi-Fi connection settings

You can obtain the QRCodeGenerator module manually (https://www.powershellgallery.com/packages/QRCodeGenerator/1.1) or utilizing the next command:

Install-Module -Name QRCodeGenerator

After the module has been put in, open a brand new PowerShell window or import the module with this command:

Import-Module QRCodeGenerator

Change the PowerShell execution (working third-party scripts) coverage :

Set-ExecutionPolicy Unrestricted -Scope Process

There are three PoSh cmdlets in this module: New-QRCodeGeolocation, New-QRCodeVCard and New-QRCodeWifiAccess.

To generate a QR code for a contact playing cards (vCard), use this script:

$strFirstName = "Max"
$strLastName = "Bakarlin"
$strCompany = "WOSHub"
$strEmail = "[email protected]"
$strPath = "$homedesktopContactvCard.png"
New-QRCodeVCard -FirstName $strFirstName -FinalName $strLastName -Company $strCompany –Email $strEmail -OutPath $strPath


To generate a QR code to entry a Wi-Fi community, specify the SSID of your community and the connection password. For instance:

$strSSID = "WiFiGuestNet"
$strWiFipassword = "3bg397-v232"
$strPath = "$homedesktopContactwifi.png"
New-QRCodeWifiAccess -SSID $strSSID -Password $strWiFipassword -Width 10 -OutPath $strPath

New-QRCodeWifiAccess - generate from powershell

If you don’t bear in mind the password of your Wi-Fi entry level or , you possibly can show the SSID and password for the precise profile of the saved wi-fi community utilizing the next command:

netsh.exe wlan present profiles title='Profile Name' key=clear

Go to Contact folder in your desktop and ensure there are two PNG information containing QR codes.

png files witr qr codes

The characteristic of QR code recognition to attach a Wi-Fi community is built-in in iOS 11 and is accessible in many Android smartphones. For instance, it really works in my Xiaomi proper out-of-the-box. Just scan this code utilizing the digital camera, and your smartphone will routinely acknowledge that the QR code accommodates the Wi-Fi connection information and can counsel you to save lots of them to hook up with this Wi-Fi community (screenshots from Xiaomi working Android).

read qr code for wifi network from mobile device

Check Also

How to Restore Deleted EFI System Partition in Windows 10?

In this text we’ll present you ways to manually restore an by chance deleted Windows …

Leave a Reply

Your email address will not be published. Required fields are marked *