Avatar of dvplayltd
dvplayltd
Flag for Bulgaria asked on

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

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.
PowershellVB ScriptWindows Server 2008Windows Networking

Avatar of undefined
Last Comment
David Johnson, CD

8/22/2022 - Mon
telczj9

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

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

ASKER
I need to close primary VM. Other programs are not so interesting.
MidnightOne

What are you using for virtualization?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
dvplayltd

ASKER
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.
David Johnson, CD

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.
dvplayltd

ASKER
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.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
David Johnson, CD

the hyper-v role is included in Server 2008
dvplayltd

ASKER
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.
dvplayltd

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

There no any useful answer, please delete it.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
MidnightOne

OP was given useful answers, which included not using an outdated and unsupported product.
ASKER CERTIFIED SOLUTION
David Johnson, CD

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
dvplayltd

ASKER
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 ?
David Johnson, CD

Yes 1 window per VM as you are used to.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.