Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-PSWSUSUpdate, NotApproved for Group #54

Open
weyCC81 opened this issue May 13, 2019 · 1 comment
Open

Get-PSWSUSUpdate, NotApproved for Group #54

weyCC81 opened this issue May 13, 2019 · 1 comment

Comments

@weyCC81
Copy link

weyCC81 commented May 13, 2019

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
Copy link
Author

weyCC81 commented May 20, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant