Skip to content

Instantly share code, notes, and snippets.

@JimMoyle
Last active February 21, 2024 10:18
Show Gist options
  • Save JimMoyle/c883bbd60fd4fbeb3d8ea95616559f64 to your computer and use it in GitHub Desktop.
Save JimMoyle/c883bbd60fd4fbeb3d8ea95616559f64 to your computer and use it in GitHub Desktop.
PowerShell to convert icon to use with Azure Virtual Desktop (AVD) App Attach
$Path = 'c:\myicon.png'
$Bytes = get-content $Path -AsByteStream -Raw
$inputFromBase64conv = [convert]::ToBase64String($Bytes)
$out = [System.Convert]::FromBase64String($inputFromBase64conv)
Write-Output $out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment