Recovery Tasks in System Center Essentails 2007
Good morning

I hope this is the right forum for this type of post.

I'm relatively new to SCE - we only just purchased it a month or two ago, and currently we are only using it as a glorified WSUS server, so my experience with tweaking MPs and whatnot is limited... so please use small words (or references to other materials are always appreciated!).

I'm trying to create a recovery task for a failed "Computer Browser" service. Not 100% sure why the browser service stops, but that's outside the scope of this post.

I'm at the point where I'm looking at the alert in the Health Explorer for a specific client computer... Choose Monitor Properties, then Diagnostics and Recovery. I want to add a recovery task for a Critical Health State... good so far.

Now, I know that SC and NET commands don't have a RESTART function, I'm opting to create a script. But I have 2 management packs to choose from - "Default Management Pack" and "Microsoft SystemCenter Essentials Default User MP". What's the difference, and why would I pick one over the other?

Selected the "Default Management Pack", and hit next. Provide a title of "RestartComputerBrowserService.vbs" or something equally descriptive, and plug in some code found at http://myitforum.com/cs2/blogs/dhite/archive/2007/11/11/vbs-scripts-to-restart-remote-services-by-name-or-display-name.aspx, with some changes - I removed the input()'s in favour of SCE supplied parameters, and removed the MsgBox() at the end. So it looks like:

strComputer = $Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetbiosComputerName$

strServiceName = "Browser"

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

Set colItems = objWMIService.ExecQuery("Select * from Win32_Service Where Name = '" & strServiceName & "'")

For Each objItem in colItems

objItem.StopService(strServiceName)

Wscript.Sleep 10000

objItem.StartService(strServiceName)

Next



Looks good from here... so hit "Create", and get the following:
Date: 3/5/2008 10:12:49 AM
Application: System Center Essentials
Application Version: 6.0.1251.1
Severity: Error
Message:

: Verification failed with [1] errors:
-------------------------------------------------------
Error 1:
: Failed to verify Recovery [MomUIGenaratedRecovery1abf17211254493598eb06befaf1780b]
The Target Class [Microsoft.Windows.OperatingSystem] for Recovery [MomUIGenaratedRecovery1abf17211254493598eb06befaf1780b] does not derive from the Target Class [Microsoft.Windows.Client.XP.OperatingSystem] of the Monitor [Microsoft.Windows.Client.XP.OperatingSystem.ComputerbrowserServiceHealth] that this Recovery is assigned to.
-------------------------------------------------------

Failed to verify Recovery [MomUIGenaratedRecovery1abf17211254493598eb06befaf1780b]The Target Class [Microsoft.Windows.OperatingSystem] for Recovery [MomUIGenaratedRecovery1abf17211254493598eb06befaf1780b] does not derive from the Target Class [Microsoft.Windows.Client.XP.OperatingSystem] of the Monitor [Microsoft.Windows.Client.XP.OperatingSystem.ComputerbrowserServiceHealth] that this Recovery is assigned to.
: Failed to verify Recovery [MomUIGenaratedRecovery1abf17211254493598eb06befaf1780b]
The Target Class [Microsoft.Windows.OperatingSystem] for Recovery [MomUIGenaratedRecovery1abf17211254493598eb06befaf1780b] does not derive from the Target Class [Microsoft.Windows.Client.XP.OperatingSystem] of the Monitor [Microsoft.Windows.Client.XP.OperatingSystem.ComputerbrowserServiceHealth] that this Recovery is assigned to.
: The Target Class [Microsoft.Windows.OperatingSystem] for Recovery [MomUIGenaratedRecovery1abf17211254493598eb06befaf1780b] does not derive from the Target Class [Microsoft.Windows.Client.XP.OperatingSystem] of the Monitor [Microsoft.Windows.Client.XP.OperatingSystem.ComputerbrowserServiceHealth] that this Recovery is assigned to.




Any direction or suggestions? Am I going about this the wrong way?

Thanks in advance.
March 5th, 2008 8:15pm

Hi Tim,

It looks like the type you're targeting the Recovery at is not derived from the target type of the monitor you're trying to add the Recovery to. Essentially, you're targeting the Recovery at Microsoft.Windows.OperatingSystem, but you should be targeting at Microsoft.Windows.XP.OperatingSystem.

Hope that helps!

Free Windows Admin Tool Kit Click here and download it now
March 5th, 2008 11:19pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
March 10th, 2008 7:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2008 10:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
March 10th, 2008 10:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2008 10:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
March 10th, 2008 10:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2008 10:48pm

Hello

Maybe I'm looking in the wrong place, but when I am going through the process of creating the response, the only option I have for a target is "Windows Operating System". If I click Select, a window pops up, with "Windows Client XP Operating System", as part of the "Windows Client XP Professional Operating Systems" management pack. At the bottom of the window, it reads "1 total targets, 1 visible, 1 selected".

So how do I change the target? Is that something I can do in the script?


  • Proposed as answer by Alon.or Monday, December 08, 2014 10:40 AM
March 10th, 2008 10:48pm

Hi,

We may need more information for analysis. Please check your event viewer for related information, save the Operations Manager section to *.evt files and send to scedata@microsoft.com.

Note:

Please include the following three lines in the email body:

Recovery Tasks in System Center Essentails 2007

http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=2955026&SiteID=17
Guo-zhen Wang - MSFT

Regarding more information about how to send email to SCEDATA@microsoft.com, please refer to:

How to send files to the Microsoft SCE team for review
http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1680389&SiteID=17

Post a quick note in the current thread after sending the email.
-----------------------------
Sincerely,
Guozhen Wang
Microsoft Online Community Support

Free Windows Admin Tool Kit Click here and download it now
March 11th, 2008 1:27pm

Good afternoon

I have attempted the steps I originally posted after installing SP1, and still receive a failure. I did not document if the error messages were identical or not.

I have sent the event log to the email address.

Thanks,

Tim

March 11th, 2008 10:44pm

Hi,

According to your logs, I found the error 26319 occurs. I performed more research on this error, and found the following KB article:

You cannot obtain elevated user rights in management servers and in agents in System Center Operations Manager 2007 or System Center Essentials 2007 environments
http://support.microsoft.com/kb/938510/en-us

You may like to apply the hotfix as a test.

Hope it helps.

Free Windows Admin Tool Kit Click here and download it now
March 13th, 2008 10:43am

I had to Save the Override rule first, then edit it and add the recovery task or response in your case.
December 8th, 2014 1:42pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics