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)
- 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:
Change the PowerShell execution (working third-party scripts) coverage :
Set-ExecutionPolicy Unrestricted -Scope Process
There are three PoSh cmdlets in this module:
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
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.
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).