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.