![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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. Posted via http://www.VirtualServerFaq.com - Brought to you by Business Information Technology Shop - http://www.bitshop.com |
My System Specs![]() |
![]() |
| 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 | |||