SCCM query to count missing and installed updates
Hi guys, I'm looking for a couple of queries. Hopefully someone can help me out.
The first, which is probably simpler; a query which will give me the count of missing updates and the count of installed updates for every machine that has 1 ore more update missing. I am not interested in the number of updates installed on a machine that
doesn't have any updates missing. Would also be good to know when the machine last reported in.
So something like this:
The second, I assume more complicated one; a query that will give me the count of missing updates but broken down into their classification (ie. critical, service packs, updates...) and a count of the installed updates.
So something like this:
Is this possible?
OK, so discovered the below:
26 = critical
27 = Definition Updates
28 = Drivers
29 = Feature Packs
30 = Security Updates
31 = Service Packs
32 = Tools
33 = Update Rollups
34 = Updates
Also, the below query returns a list of total updates required for each machine.
select
CS.Name0 [Server Name],
case
when
(sum(case
when UCS.status=2
then 1 else 0
end))>0 then
('Needs '+(cast(sum(case
when UCS.status=2
then 1 else 0
end)as
varchar(10))+
' Patches'))
else
'Good Client'
end
as 'Status',
ws.lasthwscan
as 'Last HW scan',
FCM.collectionID--,
from
v_UpdateComplianceStatus UCS
left
outer join dbo.v_GS_COMPUTER_SYSTEM CS
on CS.ResourceID
= UCS.ResourceID
join v_CICategories_All catall2
on catall2.CI_ID=UCS.CI_ID
join v_CategoryInfo catinfo2
on catall2.CategoryInstance_UniqueID
= catinfo2.CategoryInstance_UniqueID
and catinfo2.CategoryTypeName='UpdateClassification'
left
join v_gs_workstation_status ws
on ws.resourceid=CS.resourceid
left
join v_fullcollectionmembership FCM
on FCM.resourceid=CS.resourceid
WHERE
UCS.Status
= '2'
and FCM.collectionid
= 'SMS00001'
Group
by
CS.Name0,
ws.lasthwscan,
FCM.collectionID
Order
by
CS.Name0,
ws.lasthwscan,
FCM.collectionID
If I add the following, I get the total 'critical' updates required by each machine:
WHERE
catinfo2.CategoryInstanceID
= 26 AND
UCS.Status
= '2'
and FCM.collectionid
= 'SMS00001'
Changing the value '26' to one of the others listed above returns that classification.
Anyone know how I can incorporate "WHERE catinfo2.CategoryInstanceID = xx"
to list each update classification?
Similar Messages
-
SCCM Report for Applicable and Installed Updates Collection Wise
Hi All, I was looking for a report on Applicable and Installed Updates Collection Wise and got this below query on the Internet and want to create a SCCM report with this below query. How to make this query working in SCCM report?
Do I need to add prompts, if yes please guide me on adding prompts.
SELECT
DISTINCT
SYS.Name0
AS [Server Name], SIS.SMS_Installed_Sites0 AS [Site Code], UCS.Status AS [Patch Status Code],
CASE WHEN UCS.Status = '2' THEN 'Applicable' WHEN UCS.Status = '3' THEN 'Installed' ELSE '' END AS 'Patch Status', UI.BulletinID AS [Bulletin ID],
UI
.ArticleID AS [Article ID], UI.
Title
FROM
v_R_System AS SYS LEFT OUTER
JOIN
v_Update_ComplianceStatusAll
AS UCS ON SYS.ResourceID = UCS.ResourceID INNER
JOIN
v_UpdateInfo
AS UI ON UCS.CI_ID = UI.CI_ID INNER
JOIN
v_RA_System_SMSInstalledSites
AS SIS ON SYS.ResourceID = SIS.
ResourceID
WHERE
(UCS.Status IN ('2', '3')) AND (UI.ArticleID IN ('972270', '974392', '973904', '969947')) AND (SYS.Name0
IN
(SELECT DISTINCT v_FullCollectionMembership.
Name
FROM v_FullCollectionMembership INNER
JOIN
v_R_System
ON v_R_System.ResourceID = v_FullCollectionMembership.ResourceID AND v_R_System.Active0 = 1 AND
v_FullCollectionMembership
.CollectionID IN ('Collection ID'
ORDER
BY
[Patch Status Code]Yes it can be done and please run the query which i have shared in the thread
I again pasted the query for you below..
SELECT DISTINCT
SYS.Name0 AS [Server Name], CASE WHEN UCS.Status = '2' THEN 'Applicable' WHEN UCS.Status = '3' THEN 'Installed' ELSE '' END AS 'Patch Status',
UI.BulletinID AS [Bulletin ID], UI.ArticleID AS [Article ID], UI.Title
FROM v_R_System AS SYS LEFT OUTER JOIN
v_Update_ComplianceStatusAll
AS UCS ON SYS.ResourceID = UCS.ResourceID INNER JOIN
v_UpdateInfo AS UI ON UCS.CI_ID
= UI.CI_ID
WHERE (UCS.Status IN ('2', '3')) AND (SYS.Name0 IN (SELECT DISTINCT v_FullCollectionMembership.Name
FROM v_FullCollectionMembership INNER JOIN
v_R_System ON v_R_System.ResourceID = v_FullCollectionMembership.ResourceID AND v_R_System.Active0 = 1 AND
v_FullCollectionMembership.CollectionID
IN ('XXX00000')))
Kamala kannan.c| Please remember to click “Mark as Answer” or Vote as Helpful if its helpful for you. |Disclaimer: This posting is provided with no warranties and confers no rights -
How can I get my iPod touch to download and install updates to apps?
I am having difficulties with getting updates for my apps to download and install. When requested, I supply my password for my apple ID, and select "update". It immediately jumps to the screen with my icon, and then gives me a status bar and says "waiting" for an unending amount of time.
I have tried power cycling our wireless router and modem, power cycling the iPod, deleting the apps from all locations then syncing the iPod, and reinstalling the apps.
Nothing I try seems to get me out of this never ending cycle of inability to download and install updates.
Any ideas?How are you accessing the mail on the laptop? If you are using a mail client, Outlook, etc, then the mail is being downloaded to the laptop.
If you want to read them on the iPod, then in the account on the iPod, make sure that you turn off delete from server, then after looking at them on the iPod, delete the messages. You will then be able to pick them up on the laptop. Or, as Illaass said, read them with a web client. -
Impossible to download and install update 11.1.4
I cannot download and install update 11.1.4 on my PC Windows 7 After about 41MB an Error message tells me to Download only and then install manually_The same error message appears again after about 41MB How can I install this update please?
Yes I do agree on waiting. I have the same problem. However at the end of my download, message was do you want to repair or delete iTunes . I chose repair, and then said was not successful. I have no idea. So you idea jpozuk is the best one, in my opinion.
We'll have to play the waiting game.
Good day to all who reads this. :0) -
Kicking off download and install Updates remotely
Hello,
I know that in Windows 2012 you can launch sconfig and then run "Download and Install Updates" which I have found to be an extremely useful tool. Can I launch this (or a similiar) command remotely? We have a patching system, however
I am not 100% confident in it. In the event that it failes I would like to be able to manually run Windows Update remotely on multiple servers, possibly a list from a .csv file.
Can this be down through powershell?
Thanks.I haven't tried the approach of launching sconfig remotely to try and install updates, but use the Microsoft.Update.Session COM object frequently for update installations. My initial thought is that you wouldn't be able to do so remotely because the process
launched remotely would be a non-interactive process and sconfig is most likely using the microsoft.update.session COM object for the installations. Again, not tested but based on my experience with this type of thing.
The Microsoft.Update.Session COM Object (more specifically, the CreateUpdateInstaller() method) doesn't allow for installing updates remotely and this is by design.
Reference: http://msdn.microsoft.com/en-us/library/windows/desktop/aa386863(v=vs.85).aspx
It requires an interactive process and has checks internally to test for this. Even with PowerShell remoting, this
will fail. I imagine that you could still download the updates remotely, but installing is a different beast all together. You will have to look at using a scheduled job or PSExec to create a remote service that can then run the code as in interactive process.
I have written a tool called
PoshPAIG that can do a lot to help install updates remotely (uses psexec) but doesn't yet support downloading and installing updates (someone posted updated code on my codeplex site that does allow for this) that may
be useful to you.
If a UI isn't your thing, I also have
PowerShell approach available that you could use as well.
Boe Prox
Blog |
Twitter
PoshWSUS |
PoshPAIG | PoshChat |
PoshEventUI
PowerShell Deep Dives Book -
Can the Adobe Update Server be used to automatically download and install updates?
Can the Adobe Update Server be used to download and install updates to Creative Cloud apps automatically without admin or user intervention?
I've noticed there is a Adobe Remote Update Manager, but I would rather all the updates and installs happen in the background.Hi Nicholas,
Please check the link given:- https://helpx.adobe.com/creative-cloud/packager/using-remote-update-manager.html
Let me know in case you require more detail on the topic.
Sarika Behal -
Have many performance problems with latest versions of Firefox.
I remove fFrefox and reinstall 18.0 and everything is fine until Firefox automatically updates to 28.x.
I remove check in box when asked if want Firefox Maintenance installed, but downloads updates anyway and next time I bring-up then problems are back!!!
I have to start over again and never X Firefox.
I just want the basic Firefox - simple, FAST and WORKS !!!
Never liked IE - but may have to go back to it.
Chrome is also automatic download update.
using XP, but may have to rethink
Thanks for any help.What kind of problems do you have with the Firefox 28 release?
Did you check your security software (firewall, anti-virus) to make sure that the new version in allowed?
It is possible that your security software (firewall, anti-virus) blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full, unrestricted, access to internet for Firefox and the plugin-container process and the updater process.
See:
*https://support.mozilla.org/kb/Server+not+found
*https://support.mozilla.org/kb/Firewalls
*https://support.mozilla.org/kb/fix-problems-connecting-websites-after-updating
You can create a new profile as a test to check if your current profile is causing the problem.
See "Creating a profile":
*https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
*http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
If the new profile works then you can transfer files from a previously used profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over the problem
*http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox -
I can't downlaod on the software update.
the downlaod and install button won't allow.If you're already running iOS 5.1.1 that is the most current version. As such, no issue exists.
-
IMac G5 hangs when downloading and installing updates to 10.5
My iMac G5 hangs when I try to download and install the recent large update to 10.5. Message says restart to complete the installation, but after restart the messages says it is configuring the software, but progress bar shows no progress after several attemps, the longest being over 12 hours. Any ideas would be appreciated. Thanks, Bob.
Repair permission & restart your computer. Try reinstalling the OS update from the combo installer if you have not already done so instead of using Software Update.
If successful, make sure you repair permissions again after all installations are completed. -
How do I download and install updates i receive
Every so often I get a blue box that pops up and says HP Update. An update is availavle. Would you like to download and install the update now?
I don't know how to do it... I tried clicking on the blue box but it didn't help at all ; /Hello SissyT
You can update it using iTunes, you would still need access to the internet to perform the update.
Update your iPhone, iPad, or iPod touch
http://support.apple.com/kb/ht4623
Regards,
-Norm G. -
I cant download and instal updates on any of myy programs
I updated firefox some months ago and since that update I have
1 not been able to download and install AVG 2011
2) unable to download and install I Tunes UpdateTry resetting your iPod by pressing and holding both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear. Then try to update your Apps again. Where does it crash at? Are you able to enter in your Apple ID password?
If nothing else, update the Apps in iTunes and then sync the newer version to your iPod.
B-rock -
Firefox is connecting to the Internet by itself (i.e., I have not opened the browser) and then installing updates (e.g., Firefox 28 today) even though I have checked the option under Advanced to "Check for updates, but let me choose where to install." I am using Windows 7 on an HP EliteBook behind my company's firewall.
Reset your firefox and try once again!!!
The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information. <br>
'''Note''': ''This will cause you to lose any Extensions and some Preferences.''
*Open websites will not be saved in Firefox versions lower than 25.
To Reset Firefox do the following:
#Go to Firefox > Help > Troubleshooting Information.
#Click the "Reset Firefox" button.
#Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
#Firefox will open with all factory defaults applied.
Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
Did this fix your problems? Please report back to us!
Thank you. -
I download and install updates, but the CC installer asks again- and again- and again
Hi
No matter how many times I download and install the updates that I want, the installer (a few hours later, or the next day) will indicate that I have some new updates to download. When I look, they are the updates that I downloaded the previous day, or a few hours earlier. In other words, the installer is not recognising my updates. Either that, or Adobe is coming up with an update every few hours… :-)
AntonyCS6 - http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
You can also download the trial version of the software thru the page linked below and then use your current serial number to activate it.
Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
CS6: http://prodesigntools.com/adobe-cs6-direct-download-links.html -
Can't download and install Updates for my brand-new (bought today) Photoshop CS6
It looks as though it's blowing up at the very end of the download process. I've tried a couple of times. Any ideas as to what to do? Is there anyway to get direct help from Adobe?
Thanks
Bob ChapmanWhy are you installing through the Adobe Application Manager? Did you purchase Photoshop or subscribe? If you purchased Photoshop then please see http://forums.adobe.com/thread/1006208?tstart=0&promoid=KBHJQ for information on how to download and install your purchased software.
-
Just bought and installed update for elements but app won't take my serial #
Just bought and installed udate for elements mut app wont accept serial #
Hi [email protected],
Please refer the kb: http://helpx.adobe.com/x-productkb/global/my-serial-number-doesnt-work.html .
Regards,
Romit Sinha
Maybe you are looking for
-
Can install Windows 7 Pro, but not Boot Camp drivers
I have used Boot Camp assistant to install Windows 7 Pro (64 bit), and built the USB drive with Boot Camp drivers. Installed on a separate drive on my Mac Pro. When I install the drivers and reboot, I get an error. Basically Windows says there is an
-
I set up my power mac g5 with an optical out cable to a surround sound receiver but no noise at all is coming out. The receiver is set up right, I changed the settings to optical out and nothing is happening. Anything this could be? Thanks
-
Deployement with jdeveloper 10g on weblogic
hi, i have exception in deployment in weblogic that weblogic.deploy.api.tools.deployer.DeployerException: Java heap space ---- Deployment started. ---- 26/04/2009 06:54:54 م Target platform is WebLogic Server 9.x (weblogic). Checking weblogic.xml for
-
Proxy_RFC_Proxy with BPM
Hi Experts, i have scenario like Proxy-RFC-Proxy with BPM. i am sending request from proxy it goes to RFC,while i am checking in the SXMB_MONI in the sender backend sap system it is showing status like schedule , how to solve this problem ,please sug
-
Installing WSUS 2012 R2 console on server 2012 data center
Hi, Our SCCM site server is on Server 2012 and the WSUS server is on Server 2012 R2. We are getting the below error in WCM log. in SCCM we are seeing the below error PublishApplication(8427071A-DA80-48C3-97DE-C9C528F73A2D) failed with error System.In