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 the .mof SMS 2003

Modifying the .mof SMS 2003

Modifying the .mof SMS 2003

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
    string Keyname="";
        string Flags;

[DYNPROPS] instance of Reboot_Required
    KeyName = "Reboot_Required";
                    Dynamic, Provider("RegPropProv")] Flags;

#pragma namespace ("\\\\.\\root\\cimv2\\sms")

Class Reboot_Required : SMS_Class_Template
string KeyName;
[SMS_Report (TRUE)]
string Reboot_Required;

Below is the actual registry entry:


    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:

Only updates built with version 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?


RE: Modifying the .mof SMS 2003

I don't have a test server in front of me, but try changing this:

string KeyName;
[SMS_Report (TRUE)]
string Reboot_Required;

to this:

string KeyName;
[SMS_Report (TRUE)]
string Flags;

and see if that gives you the results you want to see in Resource Explorer.

Blog: http://myitforum.com/cs2/blogs/skissinger/

RE: Modifying the .mof SMS 2003

Didn't work. Any more ideas?

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