Re: Best way to shutdown several remote windows 2003 server from 1 ser



Hi,

With WMI you can send a shut down command to the service on the first server, then wait in a .Sleep(2000) loop until it gives a "stopped" status code, then continue shutting down the second server.

David$oegiharto wrote:
I'm new to WMI programming and I have a case: Shutdown several remote servers running Windows 2003 x32 and x64 from one server.

The condition are:
1. Servers cannot be shutdown simultaneously - must be shutdown in order.
ex. Specific services on Server A must be stopped first, then when services are stopped the Server A is shutdown. After server A is shutdown, then Server B can be shutdown.

I already thought about old fashion way, which is: writing vbscript that shutdown server A (using command line "shutdown -f -t, etc") and looping while pinging its IP address, when the feedback is "request time out" then I continue shutting down server B.
But I'm not sure if this is the best scenario, cause I cannot detect the services state and I think this scenario is vulnerable.

Thank you for solution in advance.

Regards,

David


--
Gerry Hickman (London UK)
.



Relevant Pages

  • RE: Logon Screen Object Does Not Appear On Servers Local Monitor
    ... The best way is to directly use the keyboard and the mouse to test ... I understand you will contact Rariton to get the new hardware, ... Technically speaking, Exchange 2003 service should be shutdown first, then ... Exchange Server 2003 Computer Takes Longer Than You Expect to Shut Down ...
    (microsoft.public.windows.server.general)
  • Re: Post SP1 shutdown slow
    ... Make no mistake about that it's a key function that has been broken by the security changes in SP1. ... What you're not getting here is that this post-SBS/SP1 slower shutdown has nothing to do with the fix in the article you cite. ... Mty pre-SBS/SP1 systems that shutdown more quickly have the exact same registry value as systems that shut down more slowly post SBS/SP1. ... Services may stop abruptly when you shut down or restart a Windows Small Business Server 2003-based computer: ...
    (microsoft.public.windows.server.sbs)
  • Re: Frequent panics on Dell Latitude D610 running 6.1-STABLE GENERIC
    ... X connection to:0.0 broken (explicit kill or server shutdown). ...
    (freebsd-stable)
  • Changing Password via Terminal Services causes Server Reboot (lsas
    ... The server is a new machine, ... Shutdown will begin in 58 seconds. ... The system will now shut down and restart. ... faulting module msgina.dll, version 5.2.3790.0, fault address 0x000118e6. ...
    (microsoft.public.windows.server.general)
  • RE: System.Data.SqlClient "Timeout expired" causing ASP.net web applic
    ... There are many values here that can shutdown the aspnet_wp. ... > update tables on a Web Server running SQL Server 2000. ... > formation(DataSet currentBalances): Timeout expired. ...
    (microsoft.public.dotnet.languages.vb)

Loading