
#Powershell start process msiexec how to
Perhaps you should skip the leading / for that? If that slash should be stripped the command would look like this. Start-Process msiexec.exe -Wait -ArgumentList ('') I have this msiexec but i don't know how to do it in powershell.

CONFIGFILE doesn't seem to be an msiexec option.

T he MSIX app will not be launched until the MSI is installed. For example, the following script is checking for a registry key to see if the MSI is installed and incase it is not, then it will trigger the MSI installation. Start-Process am not sure that your /CONFIGFILE= is right though. Since you are in PowerShell, then you can easily have checking mechanism to see if the MSI was properly installed. $cmdhash += 'MAIL_ATTRIBUTE="userPrincipalName"' $cmdhash += 'BASE_DN="DC=example,DC=org"' This works when called from a DOS command line, but MSIEXEC complains that things aren't right when I call it from powershell. $cmdhash += += 'CREDENTIALS_FILE="\\ds-01\c$\Users\svc-googlesync\Documents\example.json"' I am trying to execute the following line from a powershell script: msiexec /qb /i CONFIGFILE'ALS GSLB.jnprpreconfig'. $cmdhash += '/l*vx C:\programdata\gaps_msi_log.txt' $cmdhash = += '/i \\\dfs\wpkg\software\Google\GAPS\googleappspasswordsync64.msi' SYNOPSIS Installs PowerShell Core on Windows. This is because any prompt for elevation will happen on the remote machine in a non-interactive session and so will fail. I'm having issues with a step and hopefully someone can help. PS> Start-Process powershell.exe -Verb runAs If you use Invoke-Command to run a script or command on a remote computer, then it will not run elevated even if the local session is.

#Powershell start process msiexec install
I like this more verbose syntax because it is more readable, and I can include comments per command line option to save myself and others time re-used the command in the future. Hello, I'm working on a Powershell script to install Autodesk products. I looked it up and while some people recommend using psiexec i have seen a lot of people using the plain old invoke-command to start msi installers on remote machines. I just used Powershell to install GAPS on my core servers, and I had a command like this. For some reason Start-Process msiexec won't work when run through invoke command on a remote machine.
