Last active
November 6, 2024 17:19
-
-
Save filipnet/cb259cb224c9c46887a4afeb3b88ecbc to your computer and use it in GitHub Desktop.
Export list of subscribed WSUS products and categories
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Export subscribed | |
| $wsusServer = Get-WsusServer -Name $WSUS_HOSTNAME -Port 8530 | |
| $wsusSubscription = $wsusServer.GetSubscription() | |
| $selectedProducts = $wsusSubscription.GetUpdateCategories() | Select Title | |
| $selectedCategories = $wsusSubscription.GetUpdateClassifications() | select Title | |
| # Export full list | |
| (Get-WsusServer | Get-WsusClassification).Classification.Title | |
| (Get-WsusServer | Get-WsusProduct).Product.Title |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment