Skip to content

Instantly share code, notes, and snippets.

@TristanvanOnselen
Last active June 14, 2020 09:17
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
##Intune-Decode-Base64.ps1##
$Base64Code = read-host 'fill in the .txt file containing the base64 code to decode'
$Code = Get-Content $Base64Code [System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String($Code))| `
out-file -Encoding "ascii" output.ps1
notepad.exe .\output.ps1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment