question

anupvtr avatar image
0 Votes"
anupvtr asked anupvtr commented

Using a recovery in SCOM for Service Name: WinRM

Hi All,

Thanks in advance.

I need to create a recovery task for a unit monitor that monitor the service Windows Remote Management (WS-Management).
I am following kevin holman blog https://kevinholman.com/2008/03/26/using-a-recovery-in-opsmgr-basic/

For the service Windows Remote Management (WS-Management)

Full path to file what i can provide.
Parameters: can i provide "start WinRM"

188736-winrm.jpg

Thanks
Anu


msc-operations-manager
winrm.jpg (50.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

StoyanChalakov avatar image
0 Votes"
StoyanChalakov answered

Hi Anu,

exactly as Kevin suggests, this needs to be entered also in your case:

Full path to the file: %windir%\system32\net.exe
Parameters: start WinRM

This will do the job :)


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Stoyan Chalakov




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndrewBlumhardt-1137 avatar image
0 Votes"
AndrewBlumhardt-1137 answered anupvtr commented

If you look closely the path is to net.exe (not the service exe). Effectively this runs "net start service". Was that the issue?

Though the OS MP should be monitoring for WinRM. This sort of automated response is usually only needed for 3rd party services. The core OS services are pretty good at managing themselves.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@AndrewBlumhardt-1137

Thanks for correcting. got it.

Need to add recovery task for WinRM (Monitored via OS MP). Recovery Task is not available with this monitor.

Thanks
Anu

0 Votes 0 ·

You can only add a recovery task to an unsealed or custom monitor. The WinRM monitor in the OS MP is sealed.

0 Votes 0 ·
anupvtr avatar image anupvtr AndrewBlumhardt-1137 ·

@AndrewBlumhardt-1137 . Recovery task we can save to custom MP's. Thanks for the help.

0 Votes 0 ·