IT Consultant Everyday Notes

Just some problems/solutions storage

Hyper-V: Snapshot all VMs on a host

I am an MCT and sometimes need to prepare a class for training. Microsoft provides Hyper-V – based VMs for that and I need to use snapshots to be able safely recover VMs if a student will go too far Smile

Microsoft recommends to do it one by one from GUI.

I found PowerShell is much better: as soon as all VMs are ready I just run:

Get-VM | CheckPoint-VM –SnapshotName  StartingImage

That makes snapshots on all VMs and names them “StartingImage” (so I do not need to rename them Winking smile )

Looks like an easy thing, but save a lot of time.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: