Quantcast
Channel: File Services and Storage Forum
Viewing all articles
Browse latest Browse all 1766

Batch File to Stop and disable services also to output if the process was successful or failed

$
0
0

Good day,

Request assistance to stop and disable various services on over 40 servers using a batch file and producing an output in text advising if successful or failed.

I have tried

net stop "Automatic updates" >> services.txt
net stop "help and support" >> services.txt

sc config wuauserv start= disabled >> services.txt
sc config helpsvc start= disabled >> services.txt

using the above command I am able to see

automatic updates services stopping

automatice updates service stopped successfully

help and support service stopping

help and support service stopped successfully

sc config changed successfully

sc config changed successfully

Is there a way I can see the config service name which was changed, even if I use the service dispaly name I am unsuccessfuly


Viewing all articles
Browse latest Browse all 1766

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>