User Tools

Site Tools


wiki:powercli_script_to_get_all_snapshots

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:powercli_script_to_get_all_snapshots [2024/01/19 09:50] wagner.jerwiki:powercli_script_to_get_all_snapshots [2025/08/27 09:23] (current) wagner.jer
Line 9: Line 9:
  
 get-vm | get-snapshot | Select-Object -Property vm,created,sizeGB,name,description | Export-Csv -Path C:\Users\$env:username\Desktop\snapshots.csv</cli> get-vm | get-snapshot | Select-Object -Property vm,created,sizeGB,name,description | Export-Csv -Path C:\Users\$env:username\Desktop\snapshots.csv</cli>
 +
 +If you want to filter the results and exclude some VMs (for example replicas of Horizon VDI)
 +<cli>
 +get-vm | get-snapshot | Select-Object -Property vm,created,sizeGB,name,description | where-object {$_.VM -notlike "xxx*" -and $_.VM -notlike "zzz*"}</cli>
wiki/powercli_script_to_get_all_snapshots.1705657826.txt.gz · Last modified: by wagner.jer

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki