Service will not start using Net Start in btach file

I want to use a batch file to stop and start a service on our server. I am trying to use the attached code in the batch file. It will stop the service fine but will not start the service and I get an error stating:

The "xxx" service could not be started.
The service did not report and error.
More help is available by typing NET HELPMSG 3534

Typing "NET HELPMSG 3534' just told me that the service did not report an error.
@Echo Off
Net Stop "ArcGIS Server Object Manager"
Echo ArcGIS Server is Stopped.
Net Start "ArcGIS Server Object Manager"
Echo ArcGIS Server is Started.

Open in new window

Who is Participating?
In the "Administrative Tools" menu click "domain controller security policies". That is if its a Domain controller. If that isn't there click start>run and type "secpol.msc". If it is a domain controller, i'd suggest looking in both these panels.

I'm thinking it would be under local policy>security options. if you find nothing there check all other categories for something. You need to be logged in as a local administrator in order to access these panels. As well as disable/enable any services.

Can you start the service manually ?
apwbeAuthor Commented:
I can start the service manually just fine.
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

are there any  local ploicies restricting the use of batch files, or their privalege levels?
apwbeAuthor Commented:
Not that I know. How can I check to make sure?
apwbeAuthor Commented:
This server is not a Domain controller but I was able to access the Local Security Settings and could not find anything specific or referencing "services". Anything in particular that I should be looking at?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.