Decoding Text using PowerShell–Sweet challenge :)

This may have been posted a couple of times online and can be easily found just by searching through the search engine but I just want to share it. I wouldn’t have tried to find out how to Decode/Encode in PowerShell if not for Mike Robbins. When I was trying to find his email address so that I could contact him, I found this on the “About” page on his blog (www.mikefrobbins.com).

Capture

So in order to get his email address, we will need to run the following commands in Windows PowerShell.

$encodedmsg  = “IgBtAGkAawBlAGYAcgBvAGIAYgBpAG4AcwBAAG0AcwBwAHMAdQBnAC4AYwBvAG0AIgA=”

$decodedmsg = [System.Convert]::FromBase64String($encodedmsg)

$decodedtext = [System.Text.Encoding]::UTF8.GetString($decodedmsg)

Write-Output “Mike Robbins email is: “ $decodedtext

That’s all! I got his email now! It’s pretty interesting as it shows that you need a little effort in learning PowerShell to get in contact with the PowerShell expert.

Cheers to Mike Robbins!

Regards,
Milton Goh

By | 2015-01-17T23:47:23+00:00 May 25th, 2014|PowerShell|0 Comments

About the Author:

Leave a Reply