Home All Groups Group Topic Archive Search About

Shutdown a virtual server



Author
19 Apr 2007 11:32 AM
Frank Pusch
Hi,
If I use the vbs script to shutdown a virtual server 2003 (see also
http://www.microsoft.com/technet/scriptcenter/scripts/vs/default.mspx?mfr=true)
the Guest system doesn't shut down, because on the console there is a
messages bos with question:
"Application popup: Windows : If you shut down this remote computer, no one
can use it until someone at the remote location manually restarts it.

Do you want to continue shutting down?"

But from WebInterface (Virtual Server) I can shut down the Guest OS.

How I can do this with vbs script?

Regards,
Frank Pusch





vbs script:
On Error Resume Next

Set objVS = CreateObject("VirtualServer.Application")
Set objVM = objVS.FindVirtualMachine("Windows 2000 Server")

Set objGuestOS = objVM.GuestOS
objGuestOS.Shutdown()

AddThis Social Bookmark Button