No announcement yet.

VM Snapshot report using powershell.

  • Filter
  • Time
  • Show
Clear All
new posts

  • VM Snapshot report using powershell.

    Hello ,

    I have few servers which are running Windows Server 2012 R2 DC edition with Hyper-V role installed on it.

    We have around 40 VM's running on them, I am working of reporting part and i want that PowerShell output in format like below.

    Host Name VM Name Name Snapshot Type Snapshot Size Creation Time
    I also want to run the one PS file which remote all host and get the data from them as all host are connected in one domain.

    Currently i am using below PowerShell command from one server to get the VM snapshot data.

    Get-VMSnapshot -computer Host1 *
    Get-VMSnapshot -computer Host2 *
    Get-VMSnapshot -computer Host3 *
    Get-VMSnapshot -computer Host4 *
    Get-VMSnapshot -computer Host5 *
    Get-VMSnapshot -computer Host6 *
    Get-VMSnapshot -computer Host7 *
    Get-VMSnapshot -computer Host8 *
    Get-VMSnapshot -computer Host9 *
    Get-VMSnapshot -computer Host10 *

    Is there any better way to get the report in above format using below mentioned switches

    Format-Table -View