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