VBScript -> PowerShell
Are you a VBscripter in the process of becoming a PowerShell scripter? Once you become a PowerShell scripter, you’ll find incredible gains in productivity but first you have to becoming a PowerShell scripter. There are a few things that can help. First and foremost is PowerShell’s interactive nature. This allows you to quickly and easily experiment, fumble around, see what works, and then turn it into a script.
But what about when your brain just “thinks VBscript”?
There are a number of documentation approaches that help with this. The scripting guys over at ScriptCenter wrote the Converting VBScript Commands to Windows PowerShell Commands guide HERE. Ed Wilson’s book Microsoft Windows PowerShell Step By Step has a lot of good VBScript => PowerShell content. The gotcha with documentation is overhead. You encounter an issue and then you have to find the documentation and search for the solution and then try to use that to translate that into doing the same thing in PowerShell. Wouldn’t it be cool to be able to just type what you want would do in VBScript and press and button to see how to do it in PowerShell? Sapien has just released a tool that purports to do just that (I haven’t tried it yet).
Learn more about VBScript Conversion Snippets for Windows PowerShell
HERE. The text at that link says that this is a PrimalScript plugin but Sapien has a blog entry HERE that says that this can be used as a PrimalScript plugin OR as a standalone tool.
Jeffrey Snover [MSFT]
Windows Management Partner Architect
Visit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShell
Visit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx