I've explored the *-service cmdlets and the win32_service class but haven't
found out how to do it yet.
Anyone know how to do this?
http://technet.microsoft.com/en-us/library/ee156571.aspx
"Every managed resource class definition consists of properties, methods,
and qualifiers. This definition is applied to all instances of a class and
determines what can and cannot be done to an instance. For example, with
services you can specify actions that will be taken should the service fail
(restart the service, restart the computer, run a program, or take no
action). These recovery options are not specified anywhere with the class
definition. That means that they cannot be managed by using a script."
That being said, I'm assuming there's a Win32 API that can hook into this...
I'll try to find time to search.
Marco
"PaulChavez" <PaulC...@discussions.microsoft.com> wrote in message
news:E0596FD1-9005-46D5...@microsoft.com...
Paul;
Take a look at http://windowsitpro.com/article/articleid/85216/jsi-tip-10158-where-are-the-service-recovery-options-stored-in-the-registry.html
Karl
http://unlockpowershell.wordpress.com/
"Karl Mitschke" wrote:
> .
>