cnl83
asked on
Batch file is not stopping a windows server
Batch file is not stopping windows service even if I run it as an administrator. I need this service to start and stop on a schedule.
Tried without and without quotes.
NET STOP "Cloud Station Backup VSS Service x64"
I tried from a command prompt as administrator and was able to start and stop it.
Tried without and without quotes.
NET STOP "Cloud Station Backup VSS Service x64"
I tried from a command prompt as administrator and was able to start and stop it.
ASKER
I can't use powershell because some of these computers will not have powershell.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes, elevated mode worked. Thanks!
Yes, to stop or start services you need that level of privileges.
Anything still unclear? If not, please close the question now.
Open in new window
What if you use powershell?
To stop: Stop-Service "Cloud Station Backup VSS Service x64"
To Start: Start-Service "Cloud Station Backup VSS Service x64"
On script:
Open in new window