none
how to run a powershell script in MDT at Application installation as hidden? RRS feed

  • Question

  • Hey could someone give me the syntax to run a powershell script hidden during an application installation task?

    Thanks

    Tuesday, February 7, 2017 5:40 PM

All replies

  • Like this?

    powershell.exe -WindowStyle Hidden


    If this post is helpful please vote it as Helpful or click Mark for answer.

    • Marked as answer by Ty GlanderModerator Tuesday, February 7, 2017 7:14 PM
    • Unmarked as answer by usgrcm Tuesday, February 7, 2017 7:31 PM
    Tuesday, February 7, 2017 7:07 PM
  • Tried that, Doesn't appear to work.   All it does it do a quick run and then never installs the application.

    Tuesday, February 7, 2017 7:32 PM
  • The problem might be with your script or its location. You'll want to fix that before trying to hide the window it opens when it runs.

    Can't really answer beyond that without knowing what your script contains or how you are running it.


    If this post is helpful please vote it as Helpful or click Mark for answer.

    Tuesday, February 7, 2017 7:37 PM