How to collect the Install date of updates using SCCM
We had requirements on to collect the information of Install date for updates which is not usually collected using inventory.
The below Steps will help to get that information in to SCCM database
1) Import the Cab file
- Take the attached file--> Update Details.cab
- In your ConfigMgr 12 console, on Assets and Compliance, Compliance Settings
- Right-click on "Configuration Baseline" and Import this file (https://technet.microsoft.com/en-us/library/hh691016.aspx )
- Once done deploy the baseline to the collection of machines from which you need.(https://technet.microsoft.com/en-us/library/hh219289.aspx )
2) Import the MOF file so that SMS_DEF.MOF is updated in 2012 this is how you do
- On the console, Administration -> Client Settings -> right-click 'Default Client Settings' ->and go to properties.
- Select Hardware Inventory, then on the right "Set Classes.
- Click Import and browse to the updatedetails.mof file you saved.
Content of MOF file
========================================
[ SMS_Report (TRUE),
SMS_Group_Name ("CM_UpdateDetails"),
SMS_Class_ID ("MICROSOFT|CM_UPDATEDETAILS|1.0"),
Namespace ("root\\\\cimv2") ]
class CM_UpdateDetails : SMS_Class_Template
{
[ SMS_Report (TRUE), key ]
String HotFixID;
[ SMS_Report (TRUE) ]
String Installdate;
[ SMS_Report (TRUE) ]
String Installedby;
[ SMS_Report (TRUE) ]
String UpdateType;
};
============================================
You will get the data in the query
select * from v_GS_CM_UPDATEDETAILS
=======================================================================
The powershell script use to create a WMI entry is also available in the Zip file.
This posting /Script is provided "AS IS" with no warranties and confers no rights
Comments
- Anonymous
July 11, 2015
Sudheesh, if the installed date is not captured default, what is the LastStatusTime, LastStateName, LastStatusMessageIDName etc. stored against each UpdateID for the resources in view - v_GS_PatchStatus ?
When checked further the view is updated from vSMS_G_System_PatchStatus..
Please comment - Anonymous
January 29, 2016
https://social.technet.microsoft.com/Forums/en-US/7fe2b45e-2428-4ad9-b909-f3c8d543d60e/no-informations-in-vgspatchstatus?forum=configmgrgeneral - Anonymous
August 06, 2016
How can I know from client side on which date last update is taken on sccm client machine - Anonymous
August 03, 2017
This is not working on Servers. It is say that type mismatch