Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Windows Server 2003 Task Scheduler will not properly execute net start ...

Posted on 2013-11-14
8
Medium Priority
?
272 Views
Last Modified: 2015-01-11
In Windows Server 2003, I have tried endlessly to enter a task in the task scheduler to shut down subversion (or any other service). All the commands I show below work just fine from a command line or from a .bat file BUT they will not execute from the Task Scheduler in either a direct command or referencing a .bat file. I consistently receive a 0x80 code and the service continues to run.

I have tried:
net stop Subversion
also
sc stop Subversion

What is special about these commands that they will not execute?
0
Comment
Question by:bgraves
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 3

Expert Comment

by:IKtech
ID: 39649788
my guess is that the tasks will run if you leave the user that created the tasks logged in.  Make sure the task is setup to run even if the user is logged out (you could even test it by leaving the user logged in during the scheduled time).

you might try changing the account that scheduled tasks run as or possibly what user account the services uses.
0
 

Author Comment

by:bgraves
ID: 39649836
Forget the schedule, I am right clicking and selecting "run" and it fails!
I am logged in as administrator and the task is set to run under administrator with the proper password. There are plenty of other tasks that do not have this problem. I think it must be unique to starting/stopping a service - I think...
0
 
LVL 3

Expert Comment

by:IKtech
ID: 39651828
Ah...

just curious what the AT service account configuration is set to.  To check click start -> control panel -> scheduled tasks.  In the scheduled tasks window click "advanced" at the top Than click ATservice account.  If it is set for system maybe try using the domain admin or the local admin user name and password.

If you have ever used pstools, you might be able to schedule this task on a different server and use psexec to stop the service on the 2003 box.  Kind of a strange work around but it might work out for you.
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 3

Expert Comment

by:IKtech
ID: 39651838
Another thought i had is the "start in" field in the properties of the scheduled task may need to be set to the root of where the .bat file is saved.
0
 

Author Comment

by:bgraves
ID: 39651921
> AT service account configuration
AT Service Account is set to System.
I have been using the domain administrator name and password.

>root of where the .bat file
I am not currently using a .bat file. Just C:\Windows\System32\net.exe ... in the scheduler command with root set to c:\Windows\System32.

You would think this was a no-brainer but I can't stop any services that I have tried so far.
0
 
LVL 2

Accepted Solution

by:
Jon Sverrisson earned 2000 total points
ID: 40468149
You need to make sure that the account Local Service has full permission in the folder and batch file properties. If this account does not have full permission, then the batch file will not run from Task Scheduler.
Also check if the task is set to run with highest privileges.

Jon
0
 

Author Comment

by:bgraves
ID: 40468186
Thanks, Jon,
This thread is over one year old - I don't have a server running 2003 to try your suggestion anymore! So without checking, I really can't accept (or reject) any answers any more.
0
 
LVL 2

Expert Comment

by:Jon Sverrisson
ID: 40468193
No problem, I had been looking for a solution for a long time and just wanted to share it so that those that will find this thread will find the solution faster than I did.
Jon
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a little timesaver I have been using for setting up Microsoft Small Business Server (SBS) in the simplest possible way. It may not be appropriate for every customer. However, when you get a situation where the person who owns the server is i…
The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

704 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