Created
August 31, 2021 21:22
-
-
Save JordanTheITGuy/c30eef7ea535e95d74c39ce52f38b33e to your computer and use it in GitHub Desktop.
Find an Update based on CI ID in Configuration Manager
This file contains 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
#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