So I am finding some very weird activity and I am just trying to understand it if not determine that it is a bug..
If I run this query on machine in my environment:
SELECT
v_UpdateInfo.ArticleID
, v_UpdateInfo.BulletinID
, v_UpdateInfo.Title
, v_StateNames.StateName
, v_UpdateComplianceStatus.LastStatusCheckTime
, v_UpdateComplianceStatus.LastEnforcementMessageTime
FROM v_R_System
INNER JOIN v_UpdateComplianceStatus ON v_R_System.ResourceID = v_UpdateComplianceStatus.ResourceID
INNER JOIN v_UpdateInfo ON v_UpdateComplianceStatus.CI_ID = v_UpdateInfo.CI_ID
INNER JOIN v_StateNames ON v_UpdateComplianceStatus.LastEnforcementMessageID = v_StateNames.StateID
WHERE
v_StateNames.TopicType = 402
AND v_R_System.Netbios_Name0 LIKE '<Computername Here>'
ORDER BY v_StateNames.StateName, v_UpdateInfo.DateLastModified
It returns the following results..:
2798162 Update for Windows 7 for x64-based Systems (KB2798162) Pending system restart 2013-08-07 21:31:12.000 2013-07-22 18:27:55.000
2804579 MS13-040 Security Update for Microsoft .NET Framework 3.5.1 on Windows 7 and Windows Server 2008 R2 SP1 for x64-based Systems (KB2804579) Pending system restart 2013-08-07 21:31:12.000 2013-07-22 18:32:08.000
2820197 Cumulative Security Update for ActiveX Killbits for Windows 7 for x64-based Systems (KB2820197) Pending system restart 2013-08-07 21:31:12.000 2013-07-22 18:31:56.000
2830290 MS13-046 Security Update for Windows 7 for x64-based Systems (KB2830290) Pending system restart 2013-08-07 21:31:12.000 2013-07-22 18:32:36.000
2813430 Security Update for Windows 7 for x64-based Systems (KB2813430) Pending system restart 2013-08-07 21:31:12.000 2013-07-22 18:36:45.000
2839894 MS13-050 Security Update for Windows 7 for x64-based Systems (KB2839894) Pending system restart 2013-08-07 21:31:12.000 2013-07-22 18:36:19.000
2845690 MS13-049 Security Update for Windows 7 for x64-based Systems (KB2845690) Pending system restart 2013-08-07 21:31:12.000 2013-07-22 18:41:21.000
2487367 MS11-066 Security Update for Microsoft .NET Framework 4 on Windows XP, Windows Server 2003, Windows Vista, Windows 7, Windows Server 2008, Windows Server 2008 R2 for x64-based Systems (KB2487367) Successfully installed update 2013-08-08 16:05:44.000 2013-07-30 13:36:41.000
2533523 Update for Microsoft .NET Framework 4 on Windows XP, Windows Server 2003, Windows Vista, Windows 7, Windows Server 2008, Windows Server 2008 R2 for x64-based Systems (KB2533523) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 14:11:44.000
2468871 Update for Microsoft .NET Framework 4 on Windows XP, Windows Server 2003, Windows Vista, Windows 7, Windows Server 2008, Windows Server 2008 R2 for x64-based Systems (KB2468871) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 02:24:50.000
2656351 MS11-100 Security Update for Microsoft .NET Framework 4 on XP, Server 2003, Vista, Windows 7, Server 2008, Server 2008 R2 for x64 (KB2656351) Successfully installed update 2013-08-07 21:31:12.000 2013-07-29 18:57:01.000
2600217 Update for Microsoft .NET Framework 4 on XP, Server 2003, Vista, Windows 7, Server 2008, Server 2008 R2 for x64 (KB2600217) Successfully installed update 2013-08-07 21:31:12.000 2013-05-22 21:53:09.000
2604121 MS12-035 Security Update for Microsoft .NET Framework 4 on XP, Server 2003, Vista, Windows 7, Server 2008, Server 2008 R2 for x64 (KB2604121) Successfully installed update 2013-08-08 16:05:44.000 2013-07-30 14:18:25.000
2553091 MS11-072 Security Update for Microsoft Office 2010 (KB2553091), 32-Bit Edition Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 00:08:27.000
2685813 Update for User-Mode Driver Framework version 1.11 for Windows 7 for x64-based Systems (KB2685813) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 14:11:44.000
2685811 Update for Kernel-Mode Driver Framework version 1.11 for Windows 7 for x64-based Systems (KB2685811) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 14:11:44.000
2566458 Update for Microsoft Office 2010 (KB2566458), 32-Bit Edition Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 00:08:27.000
2761217 Update for Windows 7 for x64-based Systems (KB2761217) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 14:11:44.000
2737019 MS12-074 Security Update for Microsoft .NET Framework 4 on XP, Server 2003, Vista, Windows 7, Server 2008, Server 2008 R2 for x64 (KB2737019) Successfully installed update 2013-08-07 21:31:12.000 2013-07-30 14:18:25.000
2589320 MS11-089 Security Update for Microsoft Office 2010 (KB2589320) 32-Bit Edition Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 00:08:27.000
2553447 MS12-046 Security Update for Microsoft Office 2010 (KB2553447) 32-Bit Edition Successfully installed update 2013-08-08 16:05:44.000 2013-05-11 00:07:08.000
2729449 MS12-074 Security Update for Microsoft .NET Framework 4 on XP, Server 2003, Vista, Windows 7, Server 2008, Server 2008 R2 for x64 (KB2729449) Successfully installed update 2013-08-08 16:05:44.000 2013-07-30 14:18:25.000
2687510 MS12-057 Security Update for Microsoft Office 2010 (KB2687510) 32-Bit Edition Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 00:07:08.000
2726535 Update for Windows 7 for x64-based Systems (KB2726535) Successfully installed update 2013-08-08 16:05:44.000 2013-05-23 14:11:44.000
2763523 Update for Windows 7 for x64-based Systems (KB2763523) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 02:15:22.000
2729094 Update for Windows 7 for x64-based Systems (KB2729094) Successfully installed update 2013-08-08 16:05:44.000 2013-05-23 02:15:22.000
2574819 Update for Windows 7 for x64-based Systems (KB2574819) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 14:11:44.000
2779562 Update for Windows 7 for x64-based Systems (KB2779562) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 14:11:44.000
2598242 Update for Microsoft Office 2010 (KB2598242) 32-Bit Edition Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 00:07:08.000
2553310 Update for Microsoft Office 2010 (KB2553310) 32-Bit Edition Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 01:35:43.000
2758694 MS13-002 Security Update for Microsoft XML Core Services 4.0 Service Pack 3 for x64-based Systems (KB2758694) Successfully installed update 2013-08-07 21:31:12.000 2013-07-31 14:47:03.000
2786400 Update for Windows 7 for x64-based Systems (KB2786400) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 02:15:22.000
2565063 MS11-025 Security Update for Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package (KB2565063) Successfully installed update 2013-08-07 21:31:12.000 2013-05-14 18:08:07.000
2598243 MS12-046 Security Update for Microsoft Office 2010 (KB2598243) 32-Bit Edition Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 00:07:08.000
2732487 Update for Windows 7 for x64-based Systems (KB2732487) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 02:15:22.000
2773072 Update for Windows 7 for x64-based Systems (KB2773072) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 14:11:44.000
2592687 Update for Windows 7 for x64-based Systems (KB2592687) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 14:11:44.000
2750841 Update for Windows 7 for x64-based Systems (KB2750841) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 14:11:44.000
2742595 MS13-004 Security Update for Microsoft .NET Framework 4 on XP, Server 2003, Vista, Windows 7, Server 2008, Server 2008 R2 for x64 (KB2742595) Successfully installed update 2013-08-07 21:31:12.000 2013-07-30 13:36:41.000
2687501 MS12-057 Security Update for Microsoft Office 2010 (KB2687501) 32-Bit Edition Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 00:07:08.000
2736428 MS13-007 Security Update for Microsoft .NET Framework 4 on XP, Server 2003, Vista, Windows 7, Server 2008, Server 2008 R2 for x64 (KB2736428) Successfully installed update 2013-08-07 21:31:12.000 2013-07-30 13:36:41.000
2647753 Update for Windows 7 for x64-based Systems (KB2647753) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 14:11:44.000
2687509 Update for Microsoft Office 2010 (KB2687509) 32-Bit Edition Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 00:06:06.000
2553181 Update for Microsoft Office 2010 (KB2553181) 32-Bit Edition Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 01:35:43.000
2596964 Update for Microsoft Office 2010 (KB2596964) 32-Bit Edition Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 00:08:27.000
2732500 Update for Windows 7 for x64-based Systems (KB2732500) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 14:11:44.000
2589371 Update for Microsoft SharePoint Workspace 2010 (KB2589371) 32-Bit Edition Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 01:35:43.000
2789642 MS13-015 Security Update for Microsoft .NET Framework 4 on XP, Server 2003, Vista, Windows 7, Server 2008, Server 2008 R2 for x64 (KB2789642) Successfully installed update 2013-08-07 21:31:12.000 2013-07-30 13:36:41.000
2760631 Update for Microsoft Office 2010 (KB2760631) 32-Bit Edition Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 00:07:28.000
2553378 Update for Microsoft Office 2010 (KB2553378) 32-Bit Edition Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 00:07:28.000
2687493 Update for Microsoft Office 2007 suites (KB2687493) Successfully installed update 2013-08-07 21:31:12.000 2013-05-22 21:46:41.000
2687503 Update for Microsoft Office 2010 (KB2687503) 32-Bit Edition Successfully installed update 2013-08-08 16:05:44.000 2013-05-22 21:46:57.000
2807986 MS13-027 Security Update for Windows 7 for x64-based Systems (KB2807986) Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 02:02:23.000
2791765 Update for Windows 7 for x64-based Systems (KB2791765) Successfully installed update 2013-08-08 16:05:44.000 2013-05-23 02:15:35.000
2760600 MS13-025 Security Update for Microsoft OneNote 2010 (KB2760600) 32-Bit Edition Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 01:52:27.000
2553501 MS13-023 Security Update for Microsoft Filter Pack 2.0 (KB2553501) 32-Bit Edition Successfully installed update 2013-08-08 16:05:44.000 2013-05-11 01:52:27.000
2823180 Update for Windows 7 for x64-based Systems (KB2823180) Successfully installed update 2013-08-07 21:31:12.000 2013-05-22 21:46:21.000
2799926 Update for Windows 7 for x64-based Systems (KB2799926) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 14:11:44.000
2813170 MS13-031 Security Update for Windows 7 for x64-based Systems (KB2813170) Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 02:02:23.000
2813347 MS13-029 Security Update for Windows 7 for x64-based Systems (KB2813347) Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 02:02:23.000
2840149 MS13-036 Security Update for Windows 7 for x64-based Systems (KB2840149) Successfully installed update 2013-08-07 21:31:12.000 2013-05-11 02:02:23.000
931125 Update for Root Certificates for Windows 7 for x64-based Systems [May 2013] (KB931125) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 02:24:57.000
2820331 Update for Windows 7 for x64-based Systems (KB2820331) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 02:15:22.000
2813956 Update for Windows 7 for x64-based Systems (KB2813956) Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 02:15:22.000
2804576 MS13-040 Security Update for Microsoft .NET Framework 4 on XP, Server 2003, Vista, Windows 7, Server 2008, Server 2008 R2 for x64 (KB2804576) Successfully installed update 2013-08-07 21:31:12.000 2013-07-30 13:36:41.000
2597971 MS13-042 Security Update for Microsoft Office Publisher 2007 (KB2597971) Successfully installed update 2013-08-07 21:31:12.000 2013-07-22 18:32:26.000
982726 Definition Update for Microsoft Office 2010 (KB982726) 32-Bit Edition Successfully installed update 2013-08-07 21:31:12.000 2013-05-23 02:17:39.000
2810068 MS13-044 Security Update for Microsoft Visio 2010 (KB2810068) 32-Bit Edition Successfully installed update 2013-08-08 16:05:44.000 2013-07-22 18:36:59.000
2817327 Update for Microsoft Office Outlook 2007 Junk Email Filter (KB2817327) Successfully installed update 2013-08-07 21:31:12.000 2013-07-22 18:42:53.000
2687309 MS13-054 Security Update for Microsoft Office 2007 suites (KB2687309) Successfully installed update 2013-08-08 15:35:41.000 2013-08-08 15:35:45.000
2817563 Update for Microsoft Office Outlook 2007 Junk Email Filter (KB2817563) Successfully installed update 2013-08-08 16:05:44.000 2013-08-08 15:30:25.000
There is a small handful of systems that are stuck in a "Pending System Restart" State.
But if you run the following query:
select
s.Name0
,a.AssignmentName as DeploymentName
,a.StartTime as Available
,a.EnforcementDeadline as Deadline
,sn.StateName as LastEnforcementState
from v_CIAssignment a
join v_AssignmentState_Combined assc on a.AssignmentID=assc.AssignmentID
join v_StateNames sn on assc.StateType = sn.TopicType and sn.StateID=isnull(assc.StateID,0)
join v_R_System s on assc.ResourceID = s.ResourceID
where
s.Name0 like '<Computername Here>'
group by s.Name0, a.AssignmentName, a.StartTime, a.EnforcementDeadline, sn.StateName
order by s.Name0
It returns:
<ComputerName Here> OS - Workstation - Office Family - Security Updates and Critical Updates - <20130630 2013-08-01 23:00:00.000 2013-08-05 12:00:00.000 Compliant<ComputerName Here> OS - Workstation - SQL Server Family - Security Updates and Critical Updates - <20130630 2013-08-01 23:00:00.000 2013-08-05 12:00:00.000 Compliant<ComputerName Here> OS - Workstation - Visual Studio Family - Security Updates and Critical Updates - <20130630 2013-08-01 23:00:00.000 2013-08-05 12:00:00.000 Compliant<ComputerName Here> OS - Workstation - Windows 7 - Windows 7 - Security Updates and Critical Updates - <20130630 2013-08-01 23:00:00.000 2013-08-05 12:00:00.000 Compliant<ComputerName here> OU - /Workstations/1_TST - Office Family - Security Updates and Critical Updates - 201307 2013-08-07 17:21:00.000 2013-08-09 10:00:00.000 Downloaded update(s)
It Shows Compliant for each deployment.???
So then I run a query on the CCM_StateMSG for the machine in question and it shows exactly what the first SQL query shows, that there are a small handful of patches in a Pending System Restart state:
PS C:\WINDOWS\system32> Get-WmiObject -Namespace "root\ccm\statemsg" -Class CCM_StateMsg -Filter "TopicType = 402 and stateid = 9" | Format-Table TopicID, TopicType, StateID -autosize
TopicID TopicType StateID
------- --------- -------
Site_B458387A-88C0-481F-9F16-F367A6849181/SUM_687892d3-db53-4ca2-a750-7f35a73c192a 402 9
Site_B458387A-88C0-481F-9F16-F367A6849181/SUM_ad5ef900-cff4-47ac-b9b4-4e63d0a156f5 402 9
Site_B458387A-88C0-481F-9F16-F367A6849181/SUM_a448dd32-c91b-414d-9efe-465a92ac4642 402 9
Site_B458387A-88C0-481F-9F16-F367A6849181/SUM_32964bf2-1c68-4d57-ae68-f7bc038cb108 402 9
Site_B458387A-88C0-481F-9F16-F367A6849181/SUM_6202ae82-5789-4e5f-996d-bb4ed6f708b5 402 9
Site_B458387A-88C0-481F-9F16-F367A6849181/SUM_e0840035-6b21-4554-a6e9-2ffebc99d9aa 402 9
Site_B458387A-88C0-481F-9F16-F367A6849181/SUM_53f2cc17-4951-4d4c-920f-4e44445f1ee2 402 9
Site_B458387A-88C0-481F-9F16-F367A6849181/SUM_ae1e5ce2-3070-4fee-b702-86c6a5b65708 402 9
Site_B458387A-88C0-481F-9F16-F367A6849181/SUM_da611128-914c-433d-80fa-ddd6b6bfb10c 402 9
Site_B458387A-88C0-481F-9F16-F367A6849181/SUM_8e422254-0b41-4725-87de-b8523cfba9ff 402 9
This finally brings me to my two questions that hopefully a MS Dev will see and answer.
1. Why after MULTIPLE restarts over the course of two weeks are this still in a "Pending System Restart" state?
2. Why if the system is showing in a pending system restart state for these patches, why is the system showing as Compliant in the second sql query...
Thanks,
B