Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
124 views

cmd // stop service ONLY if it's running, otherwise declare a variable

I'd like to make a short script which: Checks if specified services are running. If they do then they should be stopped (otherwise declare variable/s for the last point). Then there will be some code ...
superfractal's user avatar
0 votes
0 answers
147 views

How to check what is controlling/restarting a Windows Service or view its errors?

There are services which can be found in services.msc As example, WlanSvc the WLAN AutoConfig. How can I check which "thing" initiated a Stop or a Restart on a service? With "thing"...
karl-police's user avatar
1 vote
2 answers
758 views

service which is set as auto is not started when system restarts

Using the below command created a service in cmd c:\>sc create "DellCare" start= auto displayname= "DellCareService" binpath= "C:\Users\Dev Parzival\Desktop\bat\DellCare\...
user avatar
0 votes
1 answer
975 views

Mining rig Batch file for closing unnecessary windows services

Ok so I am building a bat file that can automatically be executed when windows has finished loading to optimize my all my windows' based rigs for GPU mining. So far my bat file looks like this, is ...
Max Alexander Hanna's user avatar
1 vote
1 answer
790 views

Net Stop, how to stop a second service while the first is ¨Stopping...¨

Im trying to create a .bat that stops all unnecessary services, but theres so many that it takes a while to finish, because as one service is stopping the rest have to wait for it to finish, is there ...
PolisP's user avatar
  • 65
6 votes
2 answers
15k views

How to make two shortcuts: Enable+Start service & Disable+Stop any windows service?

But at this time I need only shortcuts for windows update service. I don't keep windows update service running all time but windows store needs windows update service running. I want to enable+start ...
proseosoc's user avatar
  • 407