×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Modifying .mof in SMS 2003

Modifying .mof in SMS 2003

Modifying .mof in SMS 2003

(OP)
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

RE: Modifying .mof in SMS 2003

I compiled it with no issues.  I ran wbemtest and was able to view it with no issues.  Can you view it in wbemtest?  Are you just having an issue with it reporting to SMS?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close