In the previous tip we explained how you can get PowerShellGet up and running with your PowerShell version. Now let’s see how easily the PowerShell Gallery can extend the PowerShell functionality.
Next time you print business cards, why not add a QR code? It makes adding contacts so much easier! Most modern smart devices support QR codes, and when you point the camera app to a QR code, the smart phone offers to send a mail to that person, or add the person to your contacts.
Here is how you can create a vCard QR Code:
# adjust this to match your own info
$first = "Tom"
$last = "Sawywer"
$company = "freelancer.com"
$email = "firstname.lastname@example.org"
# QR Code will be saved here
$path = "$home\Desktop\vCard.png"
# install the module from the Gallery (only required once)
Install-Module QRCodeGenerator -Scope CurrentUser -Force
# create QR code
New-QRCodeVCard -FirstName $first -LastName $last -Company $company -Email $email -OutPath $path
# open QR code image with an associated program
Invoke-Item -Path $path
ReTweet this Tip!