Forum Discussion

RahamimL's avatar
RahamimL
Iron Contributor
Jun 16, 2020

Deploy a powershell script as an win32 app

Hi everyone,

Is there a way like SCCM to deploy a powershell script as a user application without a window pop up?

I tried with the switches and with a vb script that runs the powershell and it doesn't work. running "powershell -file -(any switch that could suppress the pop up)" runs the script but doesn't suppress the window pop up. And, with vbscript, the script doesn't run because my detection rule isn't finding things to detect a successful deployment.

Any help would be appreciated.

  • Found the answer myself:

    Deploy the program with the command "powershell -file (script name)" make sure to set to run for users but deploy it computers. this will hide the window.

  • RahamimL's avatar
    RahamimL
    Iron Contributor

    Found the answer myself:

    Deploy the program with the command "powershell -file (script name)" make sure to set to run for users but deploy it computers. this will hide the window.

Resources