Execute-process Error 87

Execute-Process -Path "TableauDesktop-64bit-2020-3-4.exe -Parameters “/quiet /norestart ACEPTEULA=1” -WindgowStyle Hidden

Every time I run the above command I get error 87. The parameters work when running in cmd fine. What am I doing wrong?

I think you meant:

Execute-Process -Path "TableauDesktop-64bit-2020-3-4.exe" -Parameters "/quiet /norestart ACCEPTEULA=1" -WindowStyle Hidden

I’m guessing something got changed when you cut-n-pasted to PSADT. Watch-out for the gratuitous curly quotes “ ”

Error 87 would have to come from TableauDesktop-64bit-2020-3-4.exe not PSADT.
(See System Error Codes (0-499) (WinError.h) - Win32 apps | Microsoft Docs)

As much as I would love to blame copy and paste the fault is my own and these dam fat fingers, and also my inability to spell. Luckily I type everything out correctly including the typo’s. Thanks for the help

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.