API Reference
Command
New-ImageQRCodeCalendar
Creates a calendar event QR code image.
Remarks
Use this cmdlet to encode meeting or appointment details into a QR code that can be scanned into calendar applications.
Examples
Create a timed meeting QR code
PS>
New-ImageQRCodeCalendar -Entry 'Project Sync' -Message 'Weekly delivery review' -Location 'Office' -From (Get-Date) -To (Get-Date).AddHours(1) -FilePath qr.png
Creates a QR code for a calendar event with explicit start and end times.
Create an all-day calendar event QR code
PS>
New-ImageQRCodeCalendar -Entry 'Company Offsite' -Location 'Gdansk' -From (Get-Date).Date -To (Get-Date).Date.AddDays(1) -AllDayEvent -EventEncoding ICalComplete -FilePath offsite.png -Show
Generates an all-day event payload and opens the QR 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.
Syntax
New-ImageQRCodeCalendar [-AllDayEvent] [-BackgroundColor <Color>] -Entry <String> [-EventEncoding <Universal|ICalComplete>] -FilePath <String> [-ForegroundColor <Color>] -From <DateTime> [-Location <String>] [-Message <String>] [-PixelSize <Int32>] [-Show] -To <DateTime> [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- AllDayEvent SwitchParameter
- Specifies whether the event spans the full day.
- BackgroundColor Color
- Background color of the QR code.
- Entry String
- Event title.
- EventEncoding QrCalendarEncoding
- Calendar encoding.
- Possible values:
Universal,ICalComplete - FilePath String
- The image format is inferred from the file extension.
- ForegroundColor Color
- Foreground color of QR modules.
- From DateTime
- Start date.
- Location String
- Event location.
- Message String
- Event description.
- PixelSize Int32
- Pixel size for each QR module.
- Show SwitchParameter
- Open the image after creation.
- To DateTime
- End date.