Command
New-ImageQRCodeSms
Generates a QR code containing an SMS message.
Syntax
New-ImageQRCodeSms
[-BackgroundColor <Color>]
[-FilePath] <String>
[-ForegroundColor <Color>]
[[-Message] <String>]
[-Number] <String>
[-PixelSize <Int32>]
[-Show]
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Use this cmdlet when a scan should open the SMS app with recipient and optional message body prefilled.
Examples
Create a basic SMS QR code
New-ImageQRCodeSms -Number '+123456789' -Message 'Hello' -FilePath sms.pngCreates a QR code that opens the SMS app with the recipient number and message body prefilled.
Create an RSVP SMS QR code
New-ImageQRCodeSms -Number '+48 500 600 700' -Message 'RSVP: I will attend' -FilePath rsvp-sms.png -ForegroundColor Teal -PixelSize 16 -ShowGenerates a ready-to-send RSVP QR code for invitations or registration 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.
- -Message String
- Text message.
- -Number String
- Recipient phone number.
- -PixelSize Int32
- Pixel size for each QR module.
- -Show SwitchParameter
- Open 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.