|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
VB problem rebooting w2k3 servers.
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 "Tom E @ NG" <Tom***@discussions.microsoft.com> wrote in message Are you enabling the 'Shutdown' privilege in your WMI string?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 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". 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". > > > >
Other interesting topics
|
|||||||||||||||||||||||