Running Execute-ProcessAsUser with msi file

Hi

I tried to install Msi file with the command of Execute-ProcessAsUser:

Execute-ProcessAsUser -Path "$envSystem32Directory\msiexec.exe" -Parameters "/i `"\\servername\filename.msi`" " -wait

I got the message: error record at c:\windows\ccmcache\gv\appdeploytoolkit\appdeploytoolkitmain.ps1:11632 char:13 throw "specified path does not exist [$path].

How can I fix it?

Doron

before the Execute-ProcessAsUser command, copy the MSI in a USER-ACCESSIBLE location
Then Modify the Execute-ProcessAsUser command to use the copy.

Maybe it has the same issue has New-Shortcut.
When running from a share there is a “bug”.