We can use PowerShell to create a QR connect for someone to connect to a Wifi network. In this case, we enter the SSDI and the password. Use your smart phone to test.
QR code to connect to a Wi-fi network |
Coding
You need to initial install the following:
Install-Module -Name QRCodeGenerator
With PowerShell, we can create a QR code graphic in PNG format so that it can be scanned by a smart device and can then connect to a Wifi access point of given SSID and password:
$wifi=$Args[0] $p=$Args[1] $imgfile=$Args[2] Set-ExecutionPolicy Unrestrict Import-Module QRCodeGenerator New-QRCodeWifiAccess -SSID $wifi -Password $p -OutPath $imgfile
For an SSID to "home" and a password of "password":