proxb / PoshWSUS

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

Approve-PSWSUSUpdate, Action "Same as Parent" #55

Open weyCC81 opened 5 years ago

weyCC81 commented 5 years ago

Who is it possible to set "Same as Parent"? like here: https://github.com/MicrosoftDocs/windowsserverdocs/blob/master/WindowsServerDocs/administration/windows-server-update-services/manage/updates-operations.md#to-approve-multiple-updates

An alternative would be set "NotApproved" to "All Computers": https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms752788%28v%3dvs.85%29

PS: InvalidOperationException

weyCC81 commented 5 years ago

If you get the following error:

spDeleteRevision: cannot delete revisionid: 00000 because it is still deployed to a Non DSS Target Group

Try to run:

$i = Get-PSWSUSUpdate -Update 'KB0000000'
Deny-PSWSUSUpdate -Update $i
Remove-PSWSUSUpdate -Update $i.Title