Skip to content

Instantly share code, notes, and snippets.

@JordanTheITGuy
Created August 31, 2021 21:22
Show Gist options
  • Save JordanTheITGuy/c30eef7ea535e95d74c39ce52f38b33e to your computer and use it in GitHub Desktop.
Save JordanTheITGuy/c30eef7ea535e95d74c39ce52f38b33e to your computer and use it in GitHub Desktop.
Find an Update based on CI ID in Configuration Manager
#Sometimes your ADR will fail to download content for a specific update ID, and all you have is rule engine. Sometimes SQL is too bothersome, so here is powershell
#To take the update ID and get the name of the udpate that is failing.
#GLHF
#Enter the site code here instead
$siteCode = "XYZ"
#Enter the CI ID
$ciID = "11111111"
Get-CimInstance -ClassName SMS_SoftwareUpdate -Namespace "root\SMS\site_$($SiteCode)" -Filter "CI_ID = $($ciID)" | Select-Object LocalizedDisplayName,DateCreated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment