We help IT Professionals succeed at work.

Service will not start using Net Start in btach file

Medium Priority
672 Views
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

Comment
Watch Question

Can you start the service manually ?

Author

Commented:
I can start the service manually just fine.
are there any  local ploicies restricting the use of batch files, or their privalege levels?

Author

Commented:
Not that I know. How can I check to make sure?
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.

 

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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?
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.