Which technology I should use to close few software (and wait they to finish) in Windows Server 2008?

dvplayltd
dvplayltd used Ask the Experts™
on
Dear experts,

I have a Windows server on which usually are started few programs and 2 Microsoft virtual machines. When I need to shut down the server now I close all manually which take a lot of time, primary because VM need to save its states and it take 60 sec. to do this.

So my ask is for a solution which close all programs and send commands to Microsoft Virtual Machines 2007 to save and close. Here it should WAIT they to finish and then to send Shut down to Windows. Or just to wait 90 sec. before send shut down. In past I use to deal with BAT files, they are still here and I use it for starting of the server, but they are not useful to close programs. May be I need new powerShell, or VBScript – or what? Please advise me, better give mea  ready solution with examples.

Do I make clear that I need a solution which when I start it do not require any other human operations.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
what programs do need to exit before you shutdown your VM?

Is it not okay to let the shutdown command terminate these programs?

Author

Commented:
I need to close primary VM. Other programs are not so interesting.
What are you using for virtualization?
How to Generate Services Revenue the Easiest Way

This Tuesday! Learn key insights about modern cyber protection services & gain practical strategies to skyrocket business:

- What it takes to build a cloud service portfolio
- How to determine which services will help your unique business grow
- Various use-cases and examples

Author

Commented:
I use Microsoft Virtual PC 2007. I put a message on it to save state without asking, so i need some software to send close command to it and to wait 1 min. before send close to Windows.
Top Expert 2016

Commented:
Which Server version are you using? VPC2007 is not supported on Server 2008.  I'm guessing Server 2003 Standard Version

I can shudown and restart Server 2008/2008R2 with running Hyper-V virtual machines without a problem, they shutdown gracefully and restore on reboot.

Author

Commented:
I'm using Win 2008 Server Standard 64 bits  with MS Virtual PC 2007 SP1. I wasn’t know that it is not supported, anyway i work with it since 1 years and there no like to have any problem. Till now, the only disadvantage is that if i close often server and it is slow first to close VM.

 Well, i'm actually a programmer not administrator but because we have no dedicated admin I do this also. What is Server 2008 with Hyper-V , this is some built in Windows VM ??? My Virtual machines are not heavy loaded, they are for test our software, not for real use with 10-20+ user in one time.
Top Expert 2016

Commented:
the hyper-v role is included in Server 2008

Author

Commented:
To ve3sofa

I need a simple solution for VM, not is needed complicated installation .. as i see Server 2008
Hyper-V demands seroius administartion and resourses as RAM, is that correct?

I have 4 GB RAM in my server, it is not heavy loaded at all, the VM are used only for demo to the customers.

Author

Commented:
I've requested that this question be deleted for the following reason:

There no any useful answer, please delete it.
OP was given useful answers, which included not using an outdated and unsupported product.
Top Expert 2016
Commented:
hyper-v is not ram intensive nor does it require a lot of maintenance.

Author

Commented:
10x. Accourding to documenation hyper-v look very complicated ... but ok - will see when I'll have time to take a look over it. I do not inderstand it - after i install hyper -v role I'll be able to get 2-3 windows like Virtual PC, or ?
Top Expert 2016

Commented:
Yes 1 window per VM as you are used to.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial