I am writing a simple script that will install multiple hotfixes that cannot be added to the WSUS catalog. The hotfixes are placed on a share and are available to any new builds of the OS. All of the hotfixes are .msu files.
I wrote a simple script shown below to install each one within that share but I get an error stating "Only one instance of wssa.exe is allowed to run." How can I set up my script to run through the entire installation of one hotfix before moving to the next file? It looks like it is trying them all at the same time.
$hotfix = @(get-childitem -include *.msu -recurse).name
foreach ($h in $hotfix) {wusa.exe $h}