I have to monitor a process.
When the process exceed the CPU threshold, the corresponding service needs to be stopped and started.
Is it possible only via script?
I would use a script for that.
You could create a recovery task on the CPU usage monitor that executes a script to restart the service.
I haven't tested it but it may be possible to chain commands together like this:
net stop ServiceName & net start ServiceName
Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.
Would you like to participate?