Remove multiple snapshot through PowerCLI command


  Remove multiple snapshot through PowerCLI command 

   connect-viserver -server vcenter name -user xxxx   -password xxxx

   output :

   Name                           Port  User

   vcenter name              443   domain\username

   Run the following cmd to delete the Snapshot

   Get-VM

   get-vm $corpser | Get-Snapshot | select vm,name,description,created,sizegb | Form
    at-Table,

   $corpser - having list of VM's

   Showing list of snapshot

  Get-VM | Get-Snapshot

   Showing list of snapshot

   Get-VM  | Get-Snapshot | Remove-Snapshot -Confirm:$false

   It will show deleting snapshot ..




Comments

Popular posts from this blog

Using Non-Maskable Interrupt (NMI) facilities to troubleshoot unresponsive VMware Virtual Machine.

Removing invalid linked clone entries automatically using the ViewDBChk tool

VMTool update steps on Horizon VDI Parent VM