Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Virtual Server

Vista - RE: Shutdown Guest OS Script Problem

Reply
 
Old 09-05-2008   #1 (permalink)
Joe


 
 

RE: Shutdown Guest OS Script Problem

Quote:

> I am using the following code to shutdown a virtual machine...
>
> Set objVS = CreateObject("VirtualServer.Application")
> Set objVM = objVS.FindVirtualMachine("Virtual Machine Name")
>
> Set objGuestOS = objVM.GuestOS
> objGuestOS.Shutdown()
>
> .... this works most of the time, however on some occasions I get the error
> "The guest operating system could not be shutdown", error number 2147024809.
>
> The machine is still in a useable state (i.e. not crashed or frozen). The
> only thing I can think of is that the machine may still have applications
> running. Would this cause this error, and if so is there anything I can do to
> force the machine to close the applications and shutdown. The virtual
> machines may not always have a network connection, so I cannot call
> shutdown.exe remotely.
>
> Any help is greatly appreciated.
What happens when, the virtual machine is in such a condition that (a) It won't complete bringing itself up, (b) you can't 'SHUIT DOWN GUEST OS', or (c) It will not respond even to a TURN OFF, RESET or anything else. The only thing I haven't tried is rebooting the HOST machine - but this will obviously be invasive to the other virtual's.

Posted via http://www.VirtualServerFaq.com - Brought to you by Business Information Technology Shop - http://www.bitshop.com

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Shutdown and startup Hyper-V Virtual Machine via script Virtual Server
Script to delete files on shutdown VB Script
Shutdown guest OS problem Virtual Server
Guest OS in VS2005 cannot be shutdown normally Virtual Server
Group Policy - I need to write a script to run on shutdown Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46