All Questions
9
questions
0
votes
1
answer
185
views
Windows .Bat file behave differently when executed from command window and by double clicking on the bat file
batchfile is simple which has only two lines below, but behaves differently.
run from command window.
> sc \\server query | findstr SERVICE_NAME | find /c /v "" //result is 135
> ...
8
votes
3
answers
40k
views
How to stop service from commandline in windows?
i would like to stop following services from command line
print spooler
shell harware detection
windows defender
windows update
onedrive onecloud
and also deny them from running at startup (as i set ...
0
votes
1
answer
765
views
Service starts from services.msc but not with net start
When I launch a cmd file with "net start ..." I see "service could not be started". In logs I see that the server actually was started without any errors and then stopped. It looks like "net start" ...
6
votes
3
answers
17k
views
Make batch file wait for service to start when restarting services
I have a batch file that frequently restarts a group of services developed in house. We are soon moving away from these to something more stable, but for the time being the services need to be ...
0
votes
1
answer
482
views
Start jade via batch script as service on windows server 2012 amazon ec2 instance
I would like to start the Jade agent platform with a batch script on an windows server ec2 instance as a service. The reason for this is, that I want to start jade automatically at system startup.
...
0
votes
1
answer
3k
views
Is there a way to restart a service on a remote machine from a batch script?
I'm looking for a way to restart Windows services
from batch scripts (preferrably CMD)
on a remote machine
using a different account than the one the script is running as
Looking at the parts that ...
4
votes
2
answers
24k
views
What command line options are available to svchost.exe?
It seems the only command line option used by Windows for svchost.exe is -k, followed by the group name which svchost needs to start for a given service. Yet, use of a command line option indicates ...
8
votes
2
answers
19k
views
How can I query the Log on as user of a Windows service using the command line?
Currently sc query shows service name, display name and other attributes of the services installed on my box. However it does not tell me what the Log on as setting is. How can I get this information ...
0
votes
2
answers
39k
views
How can I resolve this error when using net start / stop: "The service name is invalid"?
We have a server that hosts a service (I'll call it "tomato").
Up until now, a client pc has been able to start and stop this service. They just double-click a batch file, and inside that batch file ...