Converts a string to a QR code representation.
ConvertTo-SystoLockQRCode [-Assignment] <OathTokenAssignment> [-CopyToClipboard] [[-File] <String>] [-Invert]
[-Type <QRCodeType>] [-AuthType <NtdsAuthType>] [-DomainController <String>] [<CommonParameters>]
ConvertTo-SystoLockQRCode [-CopyToClipboard] [[-File] <String>] [-Invert] [-Value] <String> [-AuthType <NtdsAuthType>]
[-DomainController <String>] [<CommonParameters>]
ConvertTo-SystoLockQRCode [-CopyToClipboard] [[-File] <String>] [-Invert] [-Token] <OathToken> [-Type <QRCodeType>]
[-AuthType <NtdsAuthType>] [-DomainController <String>] [<CommonParameters>]
The ConvertTo-QrCode
cmdlet converts a string into a QR code representation. The result can either be rendered to console, copied to the system clipboard or saved to a PNG file.
Existing files are overwritten without prompt.
ConvertTo-SystoLockQRCode -Value 'otpauth://totp/Example:alice@google.com?secret=CXIIUQEDJ4DMCHKPVA4FNNZO4KEX5726&issuer=Example&algorithm=SHA256&digits=6&period=30'
Converts a string to QR code.
ConvertTo-SystoLockQRCode -Value 'otpauth://totp/Example:alice@google.com?secret=CXIIUQEDJ4DMCHKPVA4FNNZO4KEX5726&issuer=Example&algorithm=SHA256&digits=6&period=30' -Invert
Converts a string to QR code 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'
Converts a string to QR code and 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
Converts a string to QR code saving to a file with custom image dimensions.
New-SystoLockOathToken | ConvertTo-SystoLockQRCode
Converts from a pipeline input.
Specifies an OATH token assignment object.
Type: OathTokenAssignment
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: 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: False
Accept wildcard characters: False
Specifies input string.
Type: String
Parameter Sets: Value
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (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).
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.
Specifies the string.
If your console colors set to a light background scheme use -Invert key to produce correct console output.