PoshWSUS icon indicating copy to clipboard operation
PoshWSUS copied to clipboard

Get-PSWSUSUpdate, NotApproved for Group

Open weyCC81 opened this issue 6 years ago • 1 comments

I would like to Get and Approve updates which are already approved on some groups but not on the TargetGroup.

First Idea: Get-PSWSUSUpdate -ApprovedState NotApproved -ComputerTargetGroups [TargetGroup]

I get zero updates out of this Request

Second Idea: Get-PSWSUSUpdate -UpdateApprovalAction NotApproved -ComputerTargetGroups [TargetGroup]

The NotApproved is not supported by UpdateApprovalAction

Is this a missing feature or i am requesting this the false way?

weyCC81 avatar May 13 '19 13:05 weyCC81

Behind "ComputerTargetGroups" it will run "ApprovedComputerTargetGroups", so it will never show unapproved Updates!

Source: https://docs.microsoft.com/en-us/previous-versions/windows/desktop/aa354556(v%3Dvs.85) https://docs.microsoft.com/en-us/previous-versions/windows/desktop/aa353750%28v%3dvs.85%29

weyCC81 avatar May 20 '19 09:05 weyCC81