I have a powershell script that runs an installation of an application. I deploy this application with SCCM. SCCM executes the scripts as "SYSTEM" My problem is that the setup.exe won't install correctly and fails when run with "SYSTEM". The script runs perfectly fine run with administrator credentials. What I would like to do is execute the setup.exe as the local administrator. How would I do that?
$switch = @("/qn", "/noreboot")
start-process setup.exe $switch