Converts a string to its QR Code representation.
ConvertTo-SystoLockQRCode [-Assignment] <Assignment> [-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>]
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.
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
Authentication method to use with domain controller (optional).
The acceptable values for this parameter are: Kerberos and Negotiate.
The default authentication 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
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
Domain controller name (optional).
You can pass 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
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
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
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
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.
Assignment object.
File name (optional).
Draw to console with inverted colors (no parameter: draw to console with normal colors).
Token object.
QR code type to generate.
Input string.
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.