| | | Forum Newbie
       
Group: Forum Members Last Login: 7/10/2007 7:26:09 AM Posts: 2, Visits: 7 |
| | Hi I want to set up a User-defined Group that organize computers that have a specific service stopped. Is it possible? I guess that I have to choose "custom" under Value Type? Any idea? /Stefan |
| | | | 
Supreme Being
       
Group: Moderators Last Login: 2/12/2011 11:11:06 PM Posts: 742, Visits: 1,211 |
| It is fairly easy to create a config group to detect the startup type of a service (manual, automatic, disabled). The config group would be based on a registry value. For example, if you wanted to know how Automatic Updates service was configured on your managed computers, you would copy the following into the drop-down box for a predefined group (instead of using one of the choices in the drop-down list): <Registry Value> “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wuauserv\\Start” As the computers poll, they will create and join groups numbered 2 (automatic), 3 (manual) or 4 (disabled). The Prism Client doesn’t currently have a way to detect if a service is actually running or not. For example, a service can be set to start automatically (2), but an admin-level user may have stopped the service. Stopping a service doesn’t change the registry value. Hopefully being able to determine the startup type of a service will get you close to what you need.
New Boundary Technologies Support support@newboundary.com |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 7/10/2007 7:26:09 AM Posts: 2, Visits: 7 |
| | Hi and thanks for your answer! Actually, what I´m looking for is to find a specific service that has status automatic on every client BUT has stopped for any reason. Then I will start the service. So I guess that Prism Deploy isn´t the right application for me!? /Stefan |
| | | | 
Supreme Being
       
Group: Moderators Last Login: 2/12/2011 11:11:06 PM Posts: 742, Visits: 1,211 |
| | The Prism Client isn't really designed to be a process watcher. However, you could use a 3rd party utility such as Sysinternals (now Microsoft) pslist in combination with Prism to tell you if a certain process was running at a point in time. For example, the following script checks to see if SomeService is running. If not, pslist will return a non-zero error code, and then the script will use the net start command to start the service: /run \\server\share\pstools\pslist SomeService If "%runerror%" != "0" /Run net start SomeService Endif
You would have assign this script as a recurring task. It's still not a perfect solution because it's possible that a service could be stopped between polling intervals, but perhaps it's a little closer to what you want.
New Boundary Technologies Support support@newboundary.com |
| |
|
|