-->

Powercli-To get VM snapshot information in vCenter

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


Powercli-To get VM snapshot information in vCenter Powercli-To get VM snapshot information in vCenter Reviewed by Virtulization on May 02, 2024 Rating: 5

No comments:

Home - PageNavi (show/hide)

hide
Powered by Blogger.