Difference between revisions of "ESXi Powershell Commandlets"
From DFWLPiki
(→ESXi Powershell Commandlets) |
(→ESXi Powershell Commandlets) |
||
Line 8: | Line 8: | ||
Get all VMs that have snapshots | Get all VMs that have snapshots | ||
get-vm | get-snapshot | format-list vm,name,created | get-vm | get-snapshot | format-list vm,name,created | ||
+ | Removing a snapshot from a specific VM | ||
+ | Get-Snapshot VMNAME | Remove-Snapshot | ||
+ | or | ||
+ | Get-Snapshot VMNAME | Remove-Snapshot -Confirm:$false |
Revision as of 15:03, 21 May 2018
Scope of This Document
This document covers ESXi powershell commands that I find useful
ESXi Powershell Commandlets
Connect to your vCenter
Connect-VIServer -Server SERVERNAME
Get all VMs that have snapshots
get-vm | get-snapshot | format-list vm,name,created
Removing a snapshot from a specific VM
Get-Snapshot VMNAME | Remove-Snapshot or Get-Snapshot VMNAME | Remove-Snapshot -Confirm:$false