Weekly Tip 42

Snapshot all Hyper-V VMs on a Host

Execute this script. Change the “$hosts =” line to reflect the name of your host. You can also modify the date format if you like on the “$date =” line.

import-module hyper-v

$host = “<host name>”

$date =  get-date -format yyyy-mm-ddThh-mm-ss

$vms = (get-vm -computername $host).name

ForEach ($vm in $vms) {

checkpoint-vm $vm -computername $host -snapshotname “$vm $date”

write-host “checkpoint created on $vm”

}

Share:

Facebook
Twitter
LinkedIn

Contact Us

Name
=
On Key

More Posts

Microsoft Intune Suite: Enterprise Application Management
Endpoint Management

Microsoft Intune Suite: Enterprise Application Management

Maintaining applications across an organization has always been one of the most time‑consuming tasks for your endpoint management team. Packaging installers, writing detection rules, testing deployments, and troubleshooting failures can eat up hours and days of

Read More »
Endpoint Privilege Management with Microsoft Intune
Endpoint Management

Endpoint Privilege Management with Microsoft Intune

One of the biggest challenges faced by IT shops is balancing productivity with strong security controls. To make sure employees are productive and you aren’t overwhelmed by help desk calls, employees need some freedom to install

Read More »
Migrating to M365 Part 5: Microsoft Purview
Tech Mergers & Acquisitions

Migrating to M365 Part 5: Microsoft Purview

This guide is part of our M365 Migration Series. Explore every step of the tenant-to-tenant migration journey below: Part 1 Part 2 Part 3 Part 4 Part 5 Mergers and acquisitions often bring the challenge of

Read More »
Migrating to M365 Part 4: Microsoft Defender
Tech Mergers & Acquisitions

Migrating to M365 Part 4: Microsoft Defender

This guide is part of our M365 Migration Series. Explore every step of the tenant-to-tenant migration journey below: Part 1 Part 2 Part 3 Part 4 Part 5 Mergers and acquisitions often bring the challenge of

Read More »