Networking Forums

Networking Forums > Computer Networking > Windows Networking > Win2k Server and Scheduled reboots

Reply
Thread Tools Display Modes

Win2k Server and Scheduled reboots

 
 
Tony
Guest
Posts: n/a

 
      02-01-2004, 11:50 PM
Hi all

I would like to know if you can schedule a win2k server to reboot itself at
a specified date and time. I would like to be able to reboot our server
automatically every couple weeks.

Thanks
Tony


 
Reply With Quote
 
 
 
 
Dave Patrick
Guest
Posts: n/a

 
      02-02-2004, 12:08 AM
Schedule this VBScript or use shutdown.exe from the resource kit.

Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Shutdown)}!\\.\r oot\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
ObjOperatingSystem.Reboot()
Next


--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect.


"Tony" wrote:
| Hi all
|
| I would like to know if you can schedule a win2k server to reboot itself
at
| a specified date and time. I would like to be able to reboot our server
| automatically every couple weeks.
|
| Thanks
| Tony
|
|


 
Reply With Quote
 
Rob Elder, MVP
Guest
Posts: n/a

 
      02-02-2004, 01:49 AM
You could also schedule a simple batch file using shutdown.exe.

"Dave Patrick" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Schedule this VBScript or use shutdown.exe from the resource kit.
>
> Set objWMIService = GetObject("winmgmts:" _
> & "{impersonationLevel=impersonate,(Shutdown)}!\\.\r oot\cimv2")
> Set colOperatingSystems = objWMIService.ExecQuery _
> ("Select * from Win32_OperatingSystem")
> For Each objOperatingSystem in colOperatingSystems
> ObjOperatingSystem.Reboot()
> Next
>
>
> --
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft MVP [Windows NT/2000 Operating Systems]
> Microsoft Certified Professional [Windows 2000]
> http://www.microsoft.com/protect.
>
>
> "Tony" wrote:
> | Hi all
> |
> | I would like to know if you can schedule a win2k server to reboot itself
> at
> | a specified date and time. I would like to be able to reboot our server
> | automatically every couple weeks.
> |
> | Thanks
> | Tony
> |
> |
>
>



 
Reply With Quote
 
Dave Patrick
Guest
Posts: n/a

 
      02-02-2004, 02:10 AM
Yepper, that was the first line in my reply.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect.


"Rob Elder, MVP" wrote:
| You could also schedule a simple batch file using shutdown.exe.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BE activation scheduled for today Eeyore Broadband 19 12-17-2009 10:33 PM
Slow DHCP Response, Win2k Server, Win2k3 Server izzy4505@gmail.com Windows Networking 0 04-14-2006 09:27 PM
Linksys Router Scheduled Reset Tony Wireless Internet 6 09-23-2004 08:15 PM
Win2K server VPN??? Grahammer Windows Networking 2 12-19-2003 11:59 PM
Scheduled Tasks Crash Windows Networking 0 12-17-2003 07:48 PM



1 2 3 4 5 6 7 8 9 10 11