proxb / PoshWSUS

PowerShell module to manage Windows Server Update Services (WSUS)
MIT License
231 stars 64 forks source link

Remove-PSWSUSUpdate.ps1 Error: Cannot find an overload for "DeleteUpdate" and the argument count: "2". #21

Open IL2 opened 8 years ago

IL2 commented 8 years ago

Remove-PSWSUSUpdate.ps1:54 char:17

Security Update for Microsoft .NET Framework 3.5.1 on Windows Server 2008 R2 for Itanium-based Systems (KB2742598) has been deleted from WSUS
Cannot find an overload for "DeleteUpdate" and the argument count: "2".
At R:\distrib\=OS\=Windows\WSUS\tools\PoshWSUS\Scripts\Remove-PSWSUSUpdate.ps1:54 char:17
+                 $wsus.DeleteUpdate($guid,$True)
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodException

$wsus.DeleteUpdate($guid,$True) should be $wsus.DeleteUpdate($guid)

This is WSUS server version 3.2.7600.274 protocol version 1.8 at Windows Server 2008 R2. PoshWSUS latest commit is 0f78f09b2c3d950f985f50714f2867f20d710bbe (Jul 19 2016). Bug is documented here https://social.technet.microsoft.com/Forums/office/en-US/404292a0-c762-4cfa-b19a-ac765adfa48e/clear-declined-updates-in-wsus-30-with-sp1?forum=winserverwsus