Service will not start using Net Start in btach file

Posted on 2009-02-10
Last Modified: 2013-11-21
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

Question by:apwbe
    LVL 9

    Expert Comment

    Can you start the service manually ?

    Author Comment

    I can start the service manually just fine.
    LVL 3

    Expert Comment

    are there any  local ploicies restricting the use of batch files, or their privalege levels?

    Author Comment

    Not that I know. How can I check to make sure?
    LVL 3

    Accepted Solution

    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.


    Author Comment

    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?

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    My previous article  ( one possible method to get SCCM 2007 installed an…
    The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now