Solved

NT schedule service - AT command syntax

Posted on 2000-02-25
8
173 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
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 100 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
 
LVL 5

Expert Comment

by:hiandras
ID: 2564338
Don't forget to start the Scheduling service. AT command won't work otherwise.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 55

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Nslookup is a command line driven utility supplied as part of most Windows operating systems that can reveal information related to domain names and the Internet Protocol (IP) addresses associated with them. In simple terms, it is a tool that can …
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

708 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

14 Experts available now in Live!

Get 1:1 Help Now