Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

PowerTip: Encode String and Execute with PowerShell

Summary: Learn how to encode a string into base64 and execute it with Windows PowerShell. (image)  How can I encode a string into base64 and then run it via Windows PowerShell? (image)  Use these commands: $string = {(Get-WindowsFeature).Where{$PSItem.Installed}}.ToString() $encodedcommand = [Convert]::ToBase64String([Text.Encoding...

Using WinRM on Linux

Summary: Microsoft MVP, David O’Brien, talks about using the pywinrm module to execute Windows PowerShell from Linux. Microsoft Scripting Guy, Ed Wilson, is here. Today Windows PowerShell MVP, David O’Brien, talks about executing Windows PowerShell on Linux. Hi. I’m David O’Brien, Microsoft MVP for Windows PowerShell, ...