PowerCLI Code Capture

For those of us still relatively new to PowerCLI and working towards automating as many robotic tasks as possible, there is a handy tool in vCenter called Code Capture. This has been available since vCenter Server Appliance (VCSA) 6.7U2 in the developer centre so its not exactly new but a lot of people don’t realise

 806 total views,  1 views today

Connect-VIServer “The SSL Connection Could Not be established”

A super quick post about an issue you’re only really likely to see the first time you use PowerCLI on a system. If youre vCenter is using a certificate that’s not trusted by your device you will see the error: “The SSL Connection could not be established, see inner exception” Fortunately, it’s a quick fix

 729 total views,  4 views today

List my hosts BIOS version

Today i was asked to confirm the BIOS version of all the hosts in a customers estates to allow them to plan an upgrade. Initially they had planned to check each iLO individually which would have been extremely time consuming, fortunately, there is a quick PowerCLI method: get-vmhost | select name, @{N=” Model”;E={($_ | get-view).hardware.systeminfo.Model}},

 479 total views,  3 views today

Create unique host profiles for each host in a cluster

The below command will create a host profile for each host found in $global:CLUChoice, The profile will be named “VMhostName-Profile” and will include the date the profile was taken in the description $global:DCChoice – Datacenter$global:CLUChoice – Cluster Get-Datacenter $global:DCChoice | Get-Cluster $global:CLUChoice | Get-VMHost | ForEach-Object -Process { New-VMHostProfile -Name “$($_.Name)-Profile” -Description “$($_.Name)) Profile. This

 479 total views,  1 views today