Having trouble modifying the .mof in SMS 2003. Below is the registry key I'm collecting on:
#pragma namespace("\\\\.\\root\\cimv2")
[DYNPROPS] class Reboot_Required
{
[key]
string Keyname="";
string Flags;
};
[DYNPROPS] instance of Reboot_Required
{
KeyName = "Reboot_Required";
[PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Updates\\UpdateExeVolatile|Flags"),
Dynamic, Provider("RegPropProv")] Flags;
};
#pragma namespace ("\\\\.\\root\\cimv2\\sms")
[SMS_Report(TRUE),
SMS_Group_Name("Reboot_Required_All"),
SMS_ClassID("Reboot_Required")]
Class Reboot_Required : SMS_Class_Template
{
[SMS_Report(TRUE),key]
string KeyName;
[SMS_Report (TRUE)]
string Reboot_Required;
};
Below is the actual registry entry:
HKLM\SOFTWARE\Microsoft\Updates\UpdateExeVolatile
Value 0 = no reboot needed
Values 1/2/3 = reboot needed
If this key is missing completely, then there are no pending restarts.
In the above example I removed two of our updates, a .NET patch and a Windows Security Patch, which created two keys:
UpdateExeVolatile
UpdateExeVolatile_X
Only updates built with version 6.1.22.0 or later versions will set these flags.
Therefore, this registry key may not always indicate whether a restart is pending, as
there are still software update packages built with older versions of Update.exe.
Where am I going wrong?
Bill
#pragma namespace("\\\\.\\root\\cimv2")
[DYNPROPS] class Reboot_Required
{
[key]
string Keyname="";
string Flags;
};
[DYNPROPS] instance of Reboot_Required
{
KeyName = "Reboot_Required";
[PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Updates\\UpdateExeVolatile|Flags"),
Dynamic, Provider("RegPropProv")] Flags;
};
#pragma namespace ("\\\\.\\root\\cimv2\\sms")
[SMS_Report(TRUE),
SMS_Group_Name("Reboot_Required_All"),
SMS_ClassID("Reboot_Required")]
Class Reboot_Required : SMS_Class_Template
{
[SMS_Report(TRUE),key]
string KeyName;
[SMS_Report (TRUE)]
string Reboot_Required;
};
Below is the actual registry entry:
HKLM\SOFTWARE\Microsoft\Updates\UpdateExeVolatile
Value 0 = no reboot needed
Values 1/2/3 = reboot needed
If this key is missing completely, then there are no pending restarts.
In the above example I removed two of our updates, a .NET patch and a Windows Security Patch, which created two keys:
UpdateExeVolatile
UpdateExeVolatile_X
Only updates built with version 6.1.22.0 or later versions will set these flags.
Therefore, this registry key may not always indicate whether a restart is pending, as
there are still software update packages built with older versions of Update.exe.
Where am I going wrong?
Bill