Windows Vista Forums

How to run powershell script without console ?
  1. #1


    yesso Guest

    How to run powershell script without console ?

    Hallo,



    how can i run powershell script without popup of console box ? may it is
    possible about vbscript ? i can not use c# or vb.net, only script languages !

      My System SpecsSystem Spec

  2. #2


    Keith Hill [MVP] Guest

    Re: How to run powershell script without console ?

    If you are using PowerShell Community Extensions, you can do this:

    start-process PowerShell.exe -arg $pwd\foo.ps1 -WindowStyle Hidden

    If not, then look up the System.Diagnostics.Process type in the .NET
    Framework. Start-Process is just a cmdlet wrapper around that type.

    --
    Keith
    http://www.codeplex.com/powershellcx


    "yesso" <yesso@xxxxxx> wrote in message
    news:F494BF50-7EE8-45B8-BE8A-5DF59082E493@xxxxxx

    > Hallo,
    >
    > how can i run powershell script without popup of console box ? may it is
    > possible about vbscript ? i can not use c# or vb.net, only script
    > languages !

      My System SpecsSystem Spec

  3. #3


    yesso Guest

    Re: How to run powershell script without console ?


    i will use the vbscript variant because i will invoke powershell from a
    windows installer custom action and dont know if there is PowerShell
    Community Extensions is installed already on the system...

    very good, thanks


      My System SpecsSystem Spec

How to run powershell script without console ? problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Powershell V2 Console Files Chad PowerShell 2 20 Sep 2009
PS Console when invoking a script from VB.NET Dan PowerShell 5 30 Jul 2007
how to call win32 console app or bat file from ps script rowein PowerShell 2 03 May 2007
Hide console and capture output from script? Brian Vallelunga PowerShell 4 03 Apr 2007
RC2 - Bug when selecting in the PowerShell console? Andrew Watt [MVP] PowerShell 4 30 Sep 2006