SOLVED

Deploy a powershell script as an win32 app

%3CLINGO-SUB%20id%3D%22lingo-sub-1468683%22%20slang%3D%22en-US%22%3EDeploy%20a%20powershell%20script%20as%20an%20win32%20app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1468683%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everyone%2C%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20like%20SCCM%20to%20deploy%20a%20powershell%20script%20as%20a%20user%20application%20without%20a%20window%20pop%20up%3F%3C%2FP%3E%3CP%3EI%20tried%20with%20the%20switches%20and%20with%20a%20vb%20script%20that%20runs%20the%20powershell%20and%20it%20doesn't%20work.%20running%20%22powershell%20-file%20-(any%20switch%20that%20could%20suppress%20the%20pop%20up)%22%20runs%20the%20script%20but%20doesn't%20suppress%20the%20window%20pop%20up.%20And%2C%20with%20vbscript%2C%20the%20script%20doesn't%20run%20because%20my%20detection%20rule%20isn't%20finding%20things%20to%20detect%20a%20successful%20deployment.%3C%2FP%3E%3CP%3EAny%20help%20would%20be%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1468683%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESoftware%20Management%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1471437%22%20slang%3D%22en-US%22%3ERe%3A%20Deploy%20a%20powershell%20script%20as%20an%20win32%20app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1471437%22%20slang%3D%22en-US%22%3E%3CP%3EFound%20the%20answer%20myself%3A%3C%2FP%3E%3CP%3EDeploy%20the%20program%20with%20the%20command%20%22powershell%20-file%20(script%20name)%22%20make%20sure%20to%20set%20to%20run%20for%20users%20but%20deploy%20it%20computers.%20this%20will%20hide%20the%20window.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent 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 (Frequent 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.