I’m trying to use execute-processasuser because this terrible msi will not accept the allusers flag. so it defaults to the installing for the user who runs the process instead of all users. Here’s my line for execute-processasuser and the app is not getting installed at all.
$PCUser is a variable that gets built from parsing the pc name.
Execute-ProcessAsUser -UserName “$PCUser” -Path “msiexec.exe” -Parameters “/I “”$dirFiles\bad.msi”" /qn /norestart"
what am i missing?