O
OlivierT
Hi all,
I'm trying to install patches in PowerShell script. I'm using
([WMICLASS]"\root\cimv2:win32_process").create("cmd.exe /K
`"c:\Hot_Fix_W2K8\Windows6.1-KB974431-x64.msu /quiet /norestart`" ") to
install a patch.
It works well for 1 patch but when I want to installe more patches, it
failed becaus PowerShell lunch all CMD at the same time.
Is there a way to force PowerShell to wait a command finish befor execute
the next one ?
Thank you,
Olivier
I'm trying to install patches in PowerShell script. I'm using
([WMICLASS]"\root\cimv2:win32_process").create("cmd.exe /K
`"c:\Hot_Fix_W2K8\Windows6.1-KB974431-x64.msu /quiet /norestart`" ") to
install a patch.
It works well for 1 patch but when I want to installe more patches, it
failed becaus PowerShell lunch all CMD at the same time.
Is there a way to force PowerShell to wait a command finish befor execute
the next one ?
Thank you,
Olivier