highball.se

Out of clutter, find simplicity

Archive for the ‘PowerShell’ Category

Linked: eagerZeroedThick powershell script

I found this great Powershell script that convert virtual disk files to eagered zeroed. Awesome script! I had to make some changes to make it work in my environment. function Set-EagerZeroThick{ param($vcName, $vmName, $hdName) # Find ESX host for VM $vmImpl = Get-VM $vmName Write-Host $vmImpl if($vmImpl.PowerState -ne “PoweredOff”){ Write-Host “Guest must be powered off [...]

Linked: Move-Template

A couple of days ago I found a really great PowerCLI script that move templates i vSphere. Awesome post and script by afokkema at ict-freak.nl! Storage vMotion is a great feature to Move your VMs to other datastores. But what if you want to move your Templates? In the current version of vSphere there is [...]