Posted On August 23, 2022

How to Remove ‘Ghost’ VMs with Status ‘Off-Critical’ or ‘Saved-Critical’

kimconnect 0 comments
blog.KimConnect.com >> Virtualization >> How to Remove ‘Ghost’ VMs with Status ‘Off-Critical’ or ‘Saved-Critical’

Issue:

Resolution:

get-vm|?{$_.State -in @('OffCritical','SavedCritical')}|remove-vm -force

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Cisco Fabric Switch – MDS Zoning Template

<# What this script does: 1. Checks to see if an Internet connection via PowerShell…

PowerShell: Remove Hyper-V VM Snapshots

Hyper-V's snapshot feature is a double-edged sword. It's a convenient method to make a quick…

Docker: Update Startup Policy for Running Containers

# Update only 1 container by name (instead of ID)docker update --restart=always kimconnect # View…
Other project: DragonCoin.com