how to stop command prompt window from appearing when running PowerShell script?

  • Hi everyone

    I have a PowerShell script that is run by Execute Process Task in SSIS.  Each time I run the task I get a black windows prompt screen appearing.  Is it possible to hide that?  I found one solution online saying to change WindowStyle option in Execute Process Task to hidden but that doesn't work.  The black window still appears.

    Thank you

  • This is nothing to worry about. After deploying your package to a server, no one will be there to see the dialog box during execution.

    The absence of evidence is not evidence of absence.
    Martin Rees

    You can lead a horse to water, but a pencil must be lead.
    Stan Laurel

  • I actually run the SSIS package within VS so I can monitor it for any issues so I am watching those black screens pop up.

  • I don't think there's a way to hide it, so you might have to tolerate it. Or embark on a rewrite.

    The absence of evidence is not evidence of absence.
    Martin Rees

    You can lead a horse to water, but a pencil must be lead.
    Stan Laurel

  • How are you specifying to run PowerShell, as a scripting task? Spitballing here, but could you run it as an Execute Process Task, with powershell.exe as the executable? Then in arguments, "-WindowStyle hidden".

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply