Please refer the below script to, STOP A SERVICE
This script will display the information of the particular service which is stopped. in your system.
Please run the script procedure as either "system user" or Logged in user.
Please specify the service name, which you want to stop.
For example, here we stopped a service name called "Spooler", in the below code like Name="Spooler". You have to provide the name of the service which you want to stop which present like shown in above example Name= "Name of the Service"
Comments