Tuesday, December 8, 2009

WMIC Command to start and stop a service

To restart a service on a remote computer from the command line:

wmic /node:"." service where name="MpsSvc" call StopService && wmic /node:"." service where name="MpsSvc" call StartService