Would you like to learn how to create a QR code for a URL using Powershell? In this tutorial, we are going to show you how to create a QR code containing a URL on a computer running Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10
• Windows 7

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Related tutorial – PowerShell

On this page, we offer quick access to a list of tutorials related to PowerShell.

Tutorial Powershell – Creating a QR Code for a URL

As an Administrator, start an elevated Powershell command-line.

Windows 10 - powershell elevated

Install the Powershell module to create a QR code.

Copy to Clipboard

Confirm the installation of NUGET.

Copy to Clipboard

Confirm the installation of the package repository.

Copy to Clipboard

Allow the execution of Powershell scripts.

Copy to Clipboard

Confirm the configuration of the execution policy.

Copy to Clipboard

Import the Powershell module named QRCODEGENERATOR.

Copy to Clipboard

List all commands available on the Powershell module.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Create a QR code for a URL.

Copy to Clipboard

Optionally, use variables to create the QR code.

Copy to Clipboard

Powershell will create a PNG file containing the QR code.

Powershell - QR code URL

In our example, we created a QR code containing a URL to our website.

Congratulations! You are able to create a QR code for a URL using Powershell.