I have been trying to uninstall an update via powershell. I am trying to leverage wusa.exe using start-process. When i pass the uninstall and quiet switches it fails to run. I get this error in setup event logs:
Windows update could not be uninstalled because of error 2147942487 "The parameter is incorrect." (Command line: ""C:\WINDOWS\system32\wusa.exe" /KB:4512516 /uninstall /quiet /norestart ")
I've read you have to do this differently with Windows 10 but I can't find any examples. How can I run this? If I run it without silent it pops up the window to uninstall the update with no issues.
Here is what i am trying to run.
Start-Process -FilePath wusa.exe -ArgumentList "/uninstall /KB:4512516 /quiet /norestart" -ErrorAction SilentlyContinue -WindowStyle Hidden -Wait