Run Installer With Switches

Hello!

I’m attempting to find the syntax to run this command in a remote powershell session, which would normally be run in an administrative command prompt. However, because I cannot remote to the machine due to org policy, I need a way to run a remote client installation like the following. Can I pull this off in powershell?

msiexec /i remoteclient.msi KEY_INFO=123456 INSTALLDIR="C:\Program Files\RemoteClient" /quiet

In short, you’re out of luck. If you don’t have a mechanism like SCCM or AD GPO available, and you can’t remote into it, then bad luck.