PowerShell/Scripts/write-qr-code.ps1
2023-06-15 11:40:54 +02:00

29 lines
1.7 KiB
PowerShell

<#
.SYNOPSIS
Writes a QR code
.DESCRIPTION
This PowerShell script writes "Hello World" as QR code to the console output.
.EXAMPLE
PS> ./write-qr-code
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
Write-Host " " -foregroundColor black -backgroundColor white
Write-Host " ▄▄▄▄▄▄▄ ▄ ▄▄▄ ▄▄▄▄▄▄▄ " -foregroundColor black -backgroundColor white
Write-Host " █ ▄▄▄ █ ▄▄▀█ █ ▄▄▄ █ " -foregroundColor black -backgroundColor white
Write-Host " █ ███ █ █▀ ▄▀ █ ███ █ " -foregroundColor black -backgroundColor white
Write-Host " █▄▄▄▄▄█ ▄▀█▀█ █▄▄▄▄▄█ " -foregroundColor black -backgroundColor white
Write-Host " ▄▄▄▄ ▄ ▄▄▄██▄ ▄▄▄ ▄ " -foregroundColor black -backgroundColor white
Write-Host " ▀ █ ▀▄▄▀█▀▀█▀█▀█▀▀▀▄█ " -foregroundColor black -backgroundColor white
Write-Host " ▄▄██▀▀▄▄█ ▄▀▄▄▄▀ ▀ ▀▄ " -foregroundColor black -backgroundColor white
Write-Host " ▄▄▄▄▄▄▄ ▀▀██▄▄██▄ ▀ ▀ " -foregroundColor black -backgroundColor white
Write-Host " █ ▄▄▄ █ ▀▄ ▄▀ ▀ ██▀▀ " -foregroundColor black -backgroundColor white
Write-Host " █ ███ █ █▄ ▄ ▀▄ ▀█▀ " -foregroundColor black -backgroundColor white
Write-Host " █▄▄▄▄▄█ █▀▄█ ███▀ ▄ ▀ " -foregroundColor black -backgroundColor white
Write-Host " " -foregroundColor black -backgroundColor white
exit 0 # success