Command
New-ImageQRCodePhoneNumber
Generates a QR code for dialling a phone number.
Syntax
New-ImageQRCodePhoneNumber
[-BackgroundColor <Color>]
[-FilePath] <String>
[-ForegroundColor <Color>]
[-Number] <String>
[-PixelSize <Int32>]
[-Show]
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Use this cmdlet when you want a scan action to immediately open the dialer with a predefined number.
Examples
Create a basic phone-number QR code
New-ImageQRCodePhoneNumber -Number '+123456' -FilePath phone.pngGenerates a QR code that opens the dialer with the selected number.
Create a support hotline QR code
New-ImageQRCodePhoneNumber -Number '+48 500 600 700' -FilePath hotline.png -ForegroundColor DarkRed -PixelSize 18 -ShowCreates a styled call-now QR code suitable for posters, intranet pages, or support desks.
Parameters
- -BackgroundColor Color
- Background color of the QR code.
- -FilePath String
- The image format is inferred from the file extension.
- -ForegroundColor Color
- Foreground color of QR modules.
- -Number String
- Phone number to dial.
- -PixelSize Int32
- Pixel size for each QR module.
- -Show SwitchParameter
- Opens the image after creation.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.