I want to stop a service without being prompted. This is what I tried:
C:\>echo y|net stop WAS
The following services are dependent on the Windows Process Activation Service service.
Stopping the Windows Process Activation Service service will also stop these services.
World Wide Web Publishing Service
Do you want to continue this operation? (Y/N) [N]:
No valid response was provided.
I want to do this within batch job.