Powercli-To get VM snapshot information in vCenter
This article describes how to collect vCenter information through powercli command.
Login powercli and run the below details.
# Connect-viserver
enter the VCSA name
To get VM's snapshot information in vCenter.
# Get-VM | Get-Snapshot | select VM, Name, Created
for exporting details in excel sheet run the below command.
# Get-VM | Get-Snapshot | select VM, Name, Created | Export-Csv D:\reports\snapshots.csv
Path location you can give as based on your wish
if remove the snapshot of all vm's at a time.. run the below command.
Get-VM | Get-Snapshot | Remove-Snapshot -Confirm:$false
No comments: