VBScript to PowerShell Converter

Are you a VBScript guy trying to learn the new and cool way of doing stuff in PowerShell? Does it seem that everything is different now and you have to lookup the docs each time you want to do something you have been doing for ages?

Fear not! Finally there’s a tool which does VBScript to PowerShell conversions for you. You type in the VBScript expression and it gets automatically converted into the PowerShell equivalent.

Automated VBscript to PowerShell conversion

As you can see we have just added this functionality into the PowerGUI Script Editor. All you need to do is:

  1. Press Ctrl-I
  2. Then type vb, tab, and the VBScript construct

Once you hit Enter, the corresponding PowerShell code gets added to your script.

The functionality is available in the latest update to PowerGUI - version 1.0.15 - which you can download from our community site.

Tags: , , , , ,

3 Responses to “VBScript to PowerShell Converter”


  1. 1 Alex May 14, 2008 at 3:07 pm

    This does not work with PG 1.0.16. Typing vb doesn’t bring up any list as illustrated here.

  2. 2 dmitrysotnikov May 14, 2008 at 3:45 pm

    Alex,

    This is weird. Are you getting the snippets popup when you press Ctrl-I?

    Is it just that the VBScript section which is missing?

    Is this a fresh install or an upgrade from an earlier version?

    Let’s follow-up on the discussion forum and troubleshoot this further: http://powergui.org/forum.jspa?forumID=118

    I am using the functionality all the time so I can assure you it is in the product. :)

    Dmitry

  1. 1 PowerScripting Podcast Episode 21, "One-half of Jeffrey Snover" « PowerScripting Podcast Trackback on March 19, 2008 at 5:28 pm

Leave a Reply