Microsoft Technical Takeoff: Windows and Microsoft Intune
Oct 24 2022 07:00 AM - Oct 27 2022 12:00 PM (PDT)
SOLVED

Deploy a powershell script as an win32 app

Regular Contributor

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.

1 Reply
best response confirmed by RahamimL (Regular Contributor)
Solution

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.