I need to create a common script to restart service:
net stop <service>
net start <service>
Problem is that I don't know the name of the service.
For example for "printer spooler
" is the name "spooler
".
How can I find the name for any service?
services.msc
.You should see: