Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In the Hyper-V GUI, it is possible to create a collection of snapshots across multiple VMs by selecting multiple VMs, then clicking Snapshot.

In PowerShell on Windows Server 2012, you can request more than one at once by passing the list of VMs as Checkpoint-VM -VMName @('server1', 'server2') (for example). But, that does them in series, not in parallel. This matters when you have machines that interact with each other.

Can you only do this by creating snapshots as jobs and letting the asynchronous job start get it very close? Is that was the GUI is doing? Or is there a "proper" way to do this?

Thanks!

share|improve this question
1  
Does the GUI in fact run them concurrently or does it run them consecutively? How can you confirm that? –  joeqwerty Dec 7 '12 at 20:58
    
It's pretty easy to see it's concurrent; you can watch the status column show the progress of multiple requests at once. –  MikeBaz Dec 7 '12 at 22:03

1 Answer 1

up vote 0 down vote accepted

There is a method to do this in Powershell. It has been discussed in this ServerFault post

share|improve this answer
    
So this is using the asynchronous job approach I mentioned already right? Or is there a nuance I missed? –  MikeBaz Dec 7 '12 at 22:04
    
Correct. I don't know that there is a right-way/wrong-way. Just a way that works for you. –  uSlackr Dec 7 '12 at 22:35
    
The better link is the source link here: stackoverflow.com/questions/4016451/… although as I said this is really just a fancy way of using jobs. I ended up using -AsJob as that is a bit less hassle and gets the same effective result. It's not perfect but it is hopefully close enough. –  MikeBaz Dec 10 '12 at 15:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.