I want to use msiexec to uninstall some programs without going through confimation boxes.
the problem is when I use this command
msiexec.exe /x "{product id}" /quietthen nothing happens and the program does not uninstall.
when I use
msiexec.exe /x "{product id}" /passiveI see the progress bar appears and disappears quickly but the program does not actually uninstall.
21 Answer
Are you trying to do this locally only or remotely?
Unless you are doing this in the power shell consolehost, you really should not need the quotes.
Yet, I'd use this command as a try as well...
msiexec /qn /x '{ProductId}'If you are doing this in one of the editors, then you need to sue the Start-Process cmdlet.
If it is remote, see this discussion.