Converts a string to its QR Code representation.
ConvertTo-SystoLockQRCode [-Assignment] <Assignment> [-CopyToClipboard] [[-File] <String>] [-Invert]
[-Type <QRCodeType>] [-AuthType <NtdsAuthType>] [-DomainController <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
ConvertTo-SystoLockQRCode [-CopyToClipboard] [[-File] <String>] [-Invert] [-Value] <String>
[-AuthType <NtdsAuthType>] [-DomainController <String>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
ConvertTo-SystoLockQRCode [-CopyToClipboard] [[-File] <String>] [-Invert] [-Token] <OathToken>
[-Type <QRCodeType>] [-AuthType <NtdsAuthType>] [-DomainController <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
The ConvertTo-QrCode cmdlet converts a string to its QR Code representation, result could be saved to a file.
Existing files are overwritten.
ConvertTo-SystoLockQRCode -Value 'otpauth://totp/Example:alice@google.com?secret=CXIIUQEDJ4DMCHKPVA4FNNZO4KEX5726&issuer=Example&algorithm=SHA256&digits=6&period=30'
Output to console.
ConvertTo-SystoLockQRCode -Value 'otpauth://totp/Example:alice@google.com?secret=CXIIUQEDJ4DMCHKPVA4FNNZO4KEX5726&issuer=Example&algorithm=SHA256&digits=6&period=30' -Invert
Output to console with inverted colors.
ConvertTo-SystoLockQRCode -Value 'otpauth://totp/Example:alice@google.com?secret=CXIIUQEDJ4DMCHKPVA4FNNZO4KEX5726&issuer=Example&algorithm=SHA256&digits=6&period=30' -File 'C:\qrcode.png'
Saving to a file.
ConvertTo-SystoLockQRCode -Value 'otpauth://totp/Example:alice@google.com?secret=CXIIUQEDJ4DMCHKPVA4FNNZO4KEX5726&issuer=Example&algorithm=SHA256&digits=6&period=30' -File 'C:\qrcode.png' -Size 600
Saving to a file with custom image dimensions.
New-SystoLockToken | ConvertTo-SystoLockQRCode
Conversion from a pipeline.
Specifies assignment object.
Type: Assignment
Parameter Sets: Assignment
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Specifies authentication method to use with domain controller (optional).
The acceptable values for this parameter are: Kerberos and Negotiate.
The default method is Kerberos.
Possible values: Kerberos, Negotiate
Type: NtdsAuthType
Parameter Sets: (All)
Aliases:
Accepted values: Kerberos, Negotiate
Required: False
Position: Named
Default value: Kerberos
Accept pipeline input: False
Accept wildcard characters: False
Allows to copy result bitmap to clipboard.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Specifies domain controller name (optional).
Accepts a domain name, a fully qualified domain name or an IP address of the domain controller.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies file name (optional).
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Draw to console with inverted colors (no parameter: draw to console with normal colors).
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies token object.
Type: OathToken
Parameter Sets: Token
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Specifies QR code type to generate.
Possible values: Oath, Provision
Type: QRCodeType
Parameter Sets: Assignment, Token
Aliases:
Accepted values: Oath, Provision
Required: False
Position: Named
Default value: Oath
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specifies input string.
Type: String
Parameter Sets: Value
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Specifies assignment object.
Specifies file name (optional).
Draw to console with inverted colors (no parameter: draw to console with normal colors).
Specifies token object.
Specifies QR code type to generate.
Specifies input string.
Specifies QR code image size (range: 150 - 900 pixels, default: 300 pixels).
Dynamic parameter, used only if file name is specified.
If your console colors set to a light background scheme use -Invert key to produce correct console output.