Skip to content

Instantly share code, notes, and snippets.

@TristanvanOnselen
Last active June 14, 2020 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TristanvanOnselen/90ba99c10d24ef828b798c697e0b9b21 to your computer and use it in GitHub Desktop.
Save TristanvanOnselen/90ba99c10d24ef828b798c697e0b9b21 to your computer and use it in GitHub Desktop.
##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