-
A quick PowerCLI snippet for examining what VM Hardware versions exist in your virtual environment: Using the “Group-Object” cmdlet we can run up a quick count of all the VMs on each hardware version 1Get-VM | Group-Object Version 2 3Count Name Group 4—– —- —– 542 v13 {VM1,VM2,VM3…} 6257 v8 {VM4,VM5,VM6…} …
Read More -
A recording of my VMworld 2018 talk, thanks to the vBrownbag team. I believe every IT Ops person, SysAdmin, and vSphere administrator should do some coding, and this session will explain how to get started. This session will cover the core concepts required along with some PowerShell/ PowerCLI examples. The session is …
Read More -
In one month from now I’ll be speaking at VMworld in Barcelona with a concise session on coding skills for the IT operations team. To quote the abstract for the session: I believe every IT Ops person, SysAdmin, and vSphere administrator should do some coding This belief is one I definitely work to in my day-to-day IT …
Read More -
I’m using vSphere Replication to replicate a number of VMs to a datastore which is being decommissioned. I can’t reconfigure replication by code (I’ve mentioned that there’s no public API or PowerCLI around the vSphere Replication functionality in vSphere 6.5 before- most recently on Twitter) and I can’t multi-select …
Read More -
This post contains resources to accompany my Devs4Ops talk from the January 2018 London VMUG. It’s a list of links to things I mentioned (or intended to mention but forgot to) in the presentation. This content is also relevant to my (compressed version) talk “Dev 4 the Ops Team” from VMworld Europe 2018. Slidedeck from …
Read More -
Support for Windows Server 2008 and 2008 R2 ends in January 2020- just two years from the date of this post. Four years ago I put up a script to find XP and 2003 VMs, and I’ve modified this to search a vSphere environment for powered on VMs running Server 2008 as a Guest OS: 1Get-VM | 2 Where {$_.PowerState -eq …
Read More -
I’ve been running a Proof of Concept system for vSphere Encryption using vSphere 6.5u1 and a HyTrust KeyControl 4.0 KMS cluster. This has been very straightforward to implement and use and there’s plenty of documentation out there on how to do so, but in this post I’ll be highlighting some of the limitations. A few of …
Read More -
Tags were added to vSphere back in version 5.1 so they’re not a new feature but are still often overlooked. One or more tags can be applied to items (entities) in the inventory and then used as a search term or metadata not only in the GUI but also through tools such as PowerCLI. This post covers a few useful cmdlets …
Read More -
A quick PowerCLI one liner to locate VMs with thick-provisioned disks attached. 1Get-VM | 2 Select Name, @{Name="StorageFormat"; Expression={( Get-HardDisk -VM $_ ).StorageFormat}} | 3 Where-Object {$_.StorageFormat -Contains "Thick"}
Read More -
I was lucky enough to take delivery of some new ESXi hosts recently. After installing them in the datacentre, I wanted to test that the network had been patched correctly. This environment is going to have Distributed vSwitches configured, but I wanted to test the physical connectivity before joining them to vCenter- …
Read More