More
Browsing Tag

Powershell

Powershell: Get all Hyper-V Checkpoints in a cluster (and remove them)

By Antti Hurme 09/11/2018 1 Comment 1 Min Read

Powershell is the way to go if you need to get all your checkpoints in a cluster. Get-VM -ComputerName (Get-ClusterNode -Cluster h-pool) | Get-VMSnapshot | Select VMName,Name,SnapshotType,CreationTime,ComputerName Get all VM’s that have a checkpoit You can filter the results by adding a where clause, for example to get all recovery snapshots left behind by Veeam or any other backup solution. Get-VM -ComputerName (Get-ClusterNode -Cluster h-pool) | Get-VMSnapshot | Where-Object {$_.SnapshotType…

Continue Reading

vCloud Director 5.x – Creating an External Network with PowerCLI

By Antti Hurme 21/02/2014 1 Comment 2 Min Read

A quick note here regarding how to create an External Network with PowerCLI. This is based on the work of dcarryertoo on the  VMware Community forums here. The method is pretty similar to when creating a Organization Network with mix of creating a new Provider VDC with PowerCLI. Additional information on how to create a new ProviderVDC can be found here. And James Bowlings post on how to create organization networks can…

Continue Reading

Get VM’s that require consolidation and approve consolidation

By Antti Hurme 16/08/2013 No Comments 2 Min Read

Wrote a small script that checks if there are any VM’s that require consolidation and asks for user action to consolidate them. You can choose between Yes and No on single VM’s or All to make the action automatic. It’s fairly simple to modify this script to make it automatic, if you so want to. It also catches any issues with consolidation so you don’t need to look at the…

Continue Reading

VMware PowerCLI – Get All Thick Provisioned Disks #2

By Antti Hurme 17/05/2013 4 Comments 1 Min Read

Las time I found a nice script that allowed to get all thick provisioned disks and listed them out. The script utilized the get-vm commandlet that isn’t exactly effective and is quite slow. Unforionately I managed to delete the commends while fiddling with the database from that post and thus lost the suggestion fromt he commends. Here’s my second take on the problem and is a lot faster than the…

Continue Reading
Load More Posts