youtube image
From YouTube: RTPSUG Lightning Talk: Levering PowerShell Encoded Commands with Ryan Leap

Description

Watch Ryan Leap (Twitter: @leap_ryan) show what the PowerShell EncodedCommand parameter is and how it works. Ryan is a 20 year IT pro experience in systems administration and development and always has some cool tricks up his sleeve!

In this video Ryan explains that he often needs to support older batch files in his org. He wanted to find a way to use PowerShell to manipulate those existing batch files. What he discovered is the EncodedCommand parameter.

Ryan shows us a custom function utility he wrote that takes an encoded command parameter and produces custom code on the fly that allows him to run Powershell code as batch files.