Skip to content

Instantly share code, notes, and snippets.

@filipnet
Last active November 6, 2024 17:19
Show Gist options
  • Select an option

  • Save filipnet/cb259cb224c9c46887a4afeb3b88ecbc to your computer and use it in GitHub Desktop.

Select an option

Save filipnet/cb259cb224c9c46887a4afeb3b88ecbc to your computer and use it in GitHub Desktop.
Export list of subscribed WSUS products and categories
# 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