PowerShell Lab
Build, find and save PowerShell
Reviewed templates and commands with requirements, permissions and risk spelled out. Nothing here runs anything — you copy, review and run it yourself.
Search pages, tools, PowerShell commands and ports
Clean up forgotten checkpoints that grow AVHDX files.
1#Requires -Modules Hyper-V2Get-VM | Get-VMSnapshot | Where-Object CreationTime -lt (Get-Date).AddDays(-7) |3 Remove-VMSnapshot -WhatIf # remove -WhatIf after reviewing the listMerging large checkpoints takes time and disk I/O. Backup software checkpoints (Veeam etc.) should be handled by that software.