Home All Groups Group Topic Archive Search About

VB problem rebooting w2k3 servers.



Author
12 Aug 2005 7:42 PM
Tom E @ NG
I put together a VB script that remotely reboots a list of servers.  This
script has been working well for all versions of windows nt through 2000. 
However, windows 2003 servers seem to ignore the reboot request.  Is there
some sort of policy that needs to allow remote reboot on w2k3 boxes?

Thanks in Advance!
Tom

Author
12 Aug 2005 11:08 PM
Marty List
"Tom E @ NG" <Tom***@discussions.microsoft.com> wrote in message
news:4503C26A-1FC3-4D40-9F94-37633FA0FFCF@microsoft.com...
> I put together a VB script that remotely reboots a list of servers.  This
> script has been working well for all versions of windows nt through 2000.
> However, windows 2003 servers seem to ignore the reboot request.  Is there
> some sort of policy that needs to allow remote reboot on w2k3 boxes?
>
> Thanks in Advance!
> Tom


Are you enabling the 'Shutdown' privilege in your WMI string?

Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate,(Shutdown)}!\\" & _
        strComputer & "\root\cimv2")


Maybe the firewall is active and you're not seeing any errors because of "On
Error Resume Next".
Author
13 Aug 2005 12:41 PM
Tom E @ NG
This is working fine for other versions of NT and the error checking I do
reports problems (such as when I attempt to run it without an Administrator
security context).  I'm pretty certain its a pocily issue on the 2003 server
side that is restricting me.  I guess I'll have to do some more searching.

Thanks!
Tom

Show quote
"Marty List" wrote:

>
> "Tom E @ NG" <Tom***@discussions.microsoft.com> wrote in message
> news:4503C26A-1FC3-4D40-9F94-37633FA0FFCF@microsoft.com...
> > I put together a VB script that remotely reboots a list of servers.  This
> > script has been working well for all versions of windows nt through 2000.
> > However, windows 2003 servers seem to ignore the reboot request.  Is there
> > some sort of policy that needs to allow remote reboot on w2k3 boxes?
> >
> > Thanks in Advance!
> > Tom
>
>
> Are you enabling the 'Shutdown' privilege in your WMI string?
>
> Set objWMIService = GetObject("winmgmts:" _
>     & "{impersonationLevel=impersonate,(Shutdown)}!\\" & _
>         strComputer & "\root\cimv2")
>
>
> Maybe the firewall is active and you're not seeing any errors because of "On
> Error Resume Next".
>
>
>
>

AddThis Social Bookmark Button