Discussion Locked

scheduling of automating the restarting

0 helpful
21 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,

Is there anybody who knows the command line that helps to automate the shutting down and restarting of the WinNT server?
It starts with shutdown/ -r .......?? I don't know the full command. Can anybody help? What about the automating of the restarting of WinNT server? I am totally lost on this. Thanks in advance.

21 replies

by jhamm99

You need the NT Resource Kit available on Microsoft's web site. Use the scheduler service on the server. As far as the command just type shutdown /? and it will give you all the options. In the past I have used the force closure of applications, be careful though as it performs an ungraceful shutdown.

by tomcat-2000

Try this: Load the scheduler service. From a command prompt, AT 00:00 (time) /every:m,t,w,th,f,s,su (or whenever) c:\bounce.cmd (the name of the batch file that you process) Mine looks like this ...

kill /a
msg * Login Disabled - Server Unavailable
net stop spooler
del %windir%\system32\spool\printers\*.* /q
del %windir%\*.tmp
shutdown /reboot

The actuat AT looks like this:

AT 00:30 /every:m,t,w,th,f,s,su c:\bounce.cmd

Make sure the file is a .cmd extension. GOOD LUCK !!!!!

by nettek

I am assuming you have a UPS connected to your server? Not only do they protect the server from surges and power outages, but they usually come with software that will gracefully down the server in the event the power fails and you are not present to manually shut down the server. The software also usually allows you to schedule automated shutdowns. If you do not have a UPS for your server, I would get one. We use APCs Smart-UPS with our servers, and they come with the software I mentioned.

by michael roark - ccna/da mcp 3csa

I have an APC UPS too,, but that only allows for shutdown, (on the models and software that we have on ours) It would probably be better, unless you're there every morning bright and early like I am (unfortunately) to turn everything back on.. you may want to just request the purchase of a full scheduling program...
Good Luck,
Mike Roark

by ronnonf

If you go to either Download.com or cnet.com you can find nice gui based utils that do this.
NAV comes with a util that can do this.

by wayne.maples

I force a reboot of a server nightly (weekly, monthly or whatever period that makes
sense) using AT scheduler to execute the resource kit utility shutdown.exe. The parameters for shutdown.exe are /l /r /y /c where /l local machine,
/r reboot,
/c close all programs and
/y avoid having to say yes to questions. For example:

at 23:13 /every:M,T,W,Th,F shutdown /l /r /y /c

taken from my tip is-it-true.org/nt/atips/atips43.shtml
-Wayne
Webmaster NT Resource for NT Admins and Users

by wayne.maples

Legal notices can be set in Windows NT using the following Windows NT registry keys.

Hive: HKEY_LOCAL_MACHINE
Key: Software\Microsoft\Windows NT\CurrentVersion\Winlogon

add or modify the following values:

LegalNoticeCaption
LegalNoticeText
LogonPrompt
Welcome

It could be from any of these values

taken from my Logon Banners tip
is-it-true.org/nt/registry/rtips141.shtml

-Wayne
Webmaster NT Resources for Admins and Users

by wayne.maples

haven't tried this variation but you should be able to use autoexnt. The AutoExNT service allows you to run a batch file, Autoexnt.bat, when you boot NT without having to log on to that computer. AutoExNT.exe is a service which will run the autoexnt.bat file. AutoExNT is an NT Resource Kit utility. You use instexnt install command to install AutoExNT.

it will run whatever is called by autoexnt.bat. I would try to have in it something like

net use x: \\srver\share /user:domx\acct pw

where acct is an account in domain domx with
appropriate privileges to share on server srver.

-Wayne
Webmaster NT Resources for Admins and Users
http://is-it-true.org/nt

by wayne.maples

16-bit applications depend on %system32%\ntvdm.exe. To lockout these applications, rename it or better yet, set it to No Access for Everyone.

check acl for ntvdm.exe, check that its there, check that it is not corrupted (copy from working PC)

I am fairly sure there is also a registry setting to block 16-bit apps but I am not sure what it is.

-Wayne
Webmaster
NT Resources for NT Admins and Users is-it-true.org/nt

This discussion is closed to new replies.