VBScript wrapper for PowerShell scripts to hide window

Posted on .

Even with PowerShell’s command-line argument “NoWindow”, a minimized powershell prompt is seen briefly by the user.

Using VBScripts ability to load console applications completely hidden, we can run PowerShell without interrupting the user.

The VBScript takes a single argument which is the filename of the powershell script. The VBScript needs to be in the same folder as the powershell script as it will work out its own scriptpath and use this to find the PowerShell script.

Leave a Reply

You may leave the Name and Email fields blank to post anonymously.