There are lots of ways. Here's One. Install a reaosnably current version of IE - should be done for security reasons anyway.
Download and install a current version of WSH http://msdn.microsoft.com/downloads/default.asp?URL=/downloads/sample.asp?url=/msdn-files/027/001/733/msdncompositedoc.xml (URL will wrap) Download and Install the Redist files for WMI WMI Redist files http://www.microsoft.com/downloads/release.asp?ReleaseID=30455 Download and install the ADS 2.5 files (not needed for this example - but if you're going this direction finish the job and create a complete scripting environment for yourself on thses boxes.) ADSI 2.5 http://www.microsoft.com/NTWorkstation/downloads/Other/ADSI25.asp OK, the current version of IE is goindg to gurantee an install of Task Scheduler. WSH and WMI will enable this script to work. '**********************************8 ' Name : Reboot.vbs ' ' Purpose: To Reboot the machine ' ' Usage: cscript.exe //nologo reboot.vbs '*********************************** Option Explicit On Error Resume Next '******************* '*** Declare variables Dim colInstances Dim objInstance set colInstances = _ GetObject("Winmgmts:{impersonationLevel=impersonate," & _ "(Shutdown)}//./root/CIMV2").ExecQuery("SELECT * FROM" & _ "Win32_OperatingSystem WHERE Primary=True") For Each objInstance in colInstances objInstance.Shutdown(6) '6 = ForceReboot Next You can find a very similar script in the WMI SDK samples. You can find a similar, but far more robust script in "WMI Essentails for Automating Windows Management" by Marcin Policht. That book also offers some WMI Scripts for Task Scheduler which could be of use in this scenario. Of course you could bag all of that, and just get task Scheduler from IE and shutdown.exe from the NTReskit. ----Original Message Follows---- From: Ed Esgro <[EMAIL PROTECTED]> Reply-To: "NT 2000 Discussions" <[EMAIL PROTECTED]> To: "NT 2000 Discussions" <[EMAIL PROTECTED]> Subject: 95 task schedule program Date: Mon, 15 Oct 2001 16:00:47 -0400 I know this is cheesy that we are still using Windows 95. But I am looking for a way to automatically restart the computer at a certain time every day. Does anyone know of a scheduler or maybe some other way to achieve this? I would love to upgrade, but it isn't an option. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp ------ You are subscribed as [email protected] Archives: http://www.swynk.com/sitesearch/search.asp To unsubscribe send a blank email to [EMAIL PROTECTED]
