I have an Application that runs pretty fine if i start PS as local administrator, but when i'm running it through SCCM2012, it fails.
Execute-Process -Path "Setup.exe" -Parameters "/s /v`"/qn INSTALLDIR=\`"$Env:ProgramFiles\Avid\iNEWS4\`"`"" -WindowStyle Hidden -IgnoreExitCodes '3010'
I know that this will work if i remove the "/s", and running through the installation wizar. The issue here, is that during the wizard i get this dialog Box that i needs to click "ok" during manually install, that might cause the problem
when SCCM2012 tries to install it.
I do not get the dialogbox while running PS as local admin....
I have tried to use "-verb runas" into the commandline, With no Luck...