Vcreds - Powershell

Hi, Couple of things. I have to install the pre req's as part of my powershell script. When I try install vcreds via powershell with the recommended switches it does not go silent. Also I would like a pause between each running. Looking on the internet -wait or start-sleep is suggested. -wait doesn't appear to work in this instance.

Community Chosen Answer

All Answers

As VBScab mentioned it is good to have vcredists added to the core image.Here are my comments regarding the script:- Vcredist executable started with /q parameter does not display anything (/passive displays a progress dialog)-Wait parameter of the Start-Process command is self-explanatory - scripts waits for the command to be completed and then moves to the next line (starts the process synchronously). It does not work if EXE just starts some sub processes and ends before sub processes are finished, but as I remember it is not the case for vcredists executable.-WindowStyle Hidden - hides the main GUI of the called EXE (It does not hide additional pop-ups started as sub processes etc.)

If you need additional pause between each execution you can use mentioned Start-Sleep (a.k.a. Sleep) cmdlet.