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

x
?
Solved

NT schedule service - AT command syntax

Posted on 2000-02-25
8
Medium Priority
?
196 Views
Last Modified: 2013-12-23
I need to be able to stop a service on an NT 4.0 server and restart it about two hours later, 6 days a week (every day except for Sunday).  I've read about the AT command that works with the schedule service to accomplish this purpose, however, I cannot seem to make it work.  Can an expert out there quickly guide me to an example of an AT command to start or stop a service that actually works?  Thanks in advance.
0
Comment
Question by:FLYORK
[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
8 Comments
 
LVL 44

Expert Comment

by:bruintje
ID: 2560626
Hi FLYORK,

In the NT resource kit you should find the files

winat.exe
winat.cnt
winat.hlp

in the helpfile you'll find every detail of running the little utility

HTH:O)Bruintje
0
 
LVL 37

Expert Comment

by:meverest
ID: 2560751
i usually put my service commands into a batch file:

stopservice.bat:
net stop <servicename>

startservice.bat
net start <servicename>

at 0:00:00 /every:M,T,W,Th,F,S,Su stopservice.bat
at 2:00:00 /every:M,T,W,Th,F,S,Su startservice.bat

make sure that the schedule service is running (of course!;-) completo.

cheers.
0
 
LVL 1

Accepted Solution

by:
srinivas_arella earned 400 total points
ID: 2560877
everest is correct. U can use these also.

at 5:45pm /every:M,T,W,Th,F,S,Su stopservice.bat

at 5:45pm /interactive stopservice.bat
(use interactive switch if ur commands need to display some window while running...any situation u think the application needs to interact with the desktop)

at 5:45pm /interactive /every:M,T,W,Th,F,S,Su stopservice.bat

at \\MyServer
(use this command to schedule or see whats happening on some remote machine)

at \\MyServer 5:45pm /every:M,T,W,Th,F,S,Su stopservice.bat
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 5

Expert Comment

by:hiandras
ID: 2564338
Don't forget to start the Scheduling service. AT command won't work otherwise.
0
 
LVL 56

Expert Comment

by:andyalder
ID: 2564459
make sure the system account (or whatever other account you set schedule service to run under) can access the batch files. As there is no environment variables set you should give the full path to everything inside the batchfiles and to the batchfiles themselves.
0
 
LVL 3

Expert Comment

by:tibori
ID: 2566362
I've found a program that makes things a bit easier and it has more features than WinAT...and it's free:
http://download.cnet.com/downloads/0-1461989-100-914472.html?tag=st.dl.10001_103_1.lst.titledetail

0
 

Author Comment

by:FLYORK
ID: 2567059
I tried your first example - "at 5:45pm /every:M,T,W,Th,F,S,Su stopservice.bat" and it worked perfectly.  Thanks for the help, it is very much appreciated.

0
 
LVL 1

Expert Comment

by:srinivas_arella
ID: 2568441
u r welcome.
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Greetings, Experts! First let me state that this website is top notch. I thoroughly enjoy the community that is shared here; those seeking help and those willing to sacrifice their time to help. It is fantastic. I am writing this article at th…
This article is in response to a question (http://www.experts-exchange.com/Networking/Network_Management/Network_Analysis/Q_28230497.html) here at Experts Exchange. The Original Poster (OP) requires a utility that will accept a list of IP addresses …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

722 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