Can I run a Powershell Command and have it show me the Powershell Window so I can monitor it?



  • Andrew Pla


    This is the same message that I sent to you previously, but wanted to share it here in case it's helpful to others who stop by:

    If you wanted to have a deployment pop up something, you could look into using a PowerShell step running as Deploy User (Interactive). You could then use Start-Process to open a new PowerShell window and run a script. Start-Process PowerShell.exe -ArgumentList '-file c:\temp\testfile.ps1'
    Rather than doing bringing up an external PowerShell window, I recommend checking the output log for the package to see if there is valuable information there.

    Comment actions Permalink
  • kelemvor

    My specific example was for Cluster Aware Updating.  I found a work around by having a two step deployment

    1. CMD - start clusterupdateui.exe <clustername>
    2. PS - Invoke-CauRun -ClusterName blahblah see above

    The first step opens the CAU GUI so I can monitor what's going on.  The second step kicks off the actual update.  By adding the "start" word in front of the exe in step 1, it fires off the command and then immediately continues to the second step which does exactly what I need.

    I tried using the Interactive thing previous but tried it with just a one-line command and couldn't make it work.  Once I found the solution I'm using, I don't think I ever went back and tried it with the start-process stuff since I'd prefer to have the actual GUI open up anyway over seeing the PS window.


    Comment actions Permalink

Please sign in to leave a comment.