Mostly Anything

IT Blog über VMWare, SQL, Storage, Security und mehr.

Mostly Anything header image 2

Alle VMWare Snapshots in Powershell auflisten

Juli 5th, 2010 · Keine Kommentare

Man braucht immer wieder mal eine Liste aller Snapshots. Das ist mit vSphere PowerCLI auch ganz einfach

Get-VM | Sort Name | Get-Snapshot |
Where { $_.Name.Length -gt 0 } |
Select VM,Name,Description,Created

Das kann man natürlich auch auf ein Datacenter einschränken

Get-Datacenter -Name "Datacenter Name" | Get-VM |
Sort Name | Get-Snapshot |
Where { $_.Name.Length -gt 0 } |
Select VM,Name,Description,Created

Oder auf einen Cluster

Get-Cluster -Name "Cluster Name" | Get-VM |
Sort Name | Get-Snapshot |
Where { $_.Name.Length -gt 0 } |
Select VM,Name,Description,Created

Tags: Powershell · VMWare

0 Antworten bis jetzt ↓

  • Es gibt keine Kommentare bis jetzt...Trete Sachen weg, die vom Formular runterfallen.

Hinterlasse ein Kommentar