PowerCLI: Technical Support Mode
Today Duncan over at yellow-bricks.com has started quite the conversation on technical support mode for ESXi or otherwise known as “unsupported mode”, check out his blog post and especially the comments here: http://www.yellow-bricks.com/2010/03/01/disable-tech-support-on-esxi/
As always when I see a post my first thought is to PowerCLI, so how can it help in this instance, well apart from the obvious cmdlets which I mentioned in my earlier ESXi post, there are also a couple of one liners which can help us manage Technical Support mode.
To view all hosts and check to see if they have Technical Support mode enabled, use the following:
Get-VMHost | Where {$_.State -eq "Connected" -or $_.State -eq "Maintenance"} | Get-View | Where {$_.Summary.Config.Product.Name -match "i"} | Select Name, @{N="TechSuportModeEnabled";E={(Get-VMHost $_.Name | Get-VMHostAdvancedConfiguration -Name VMkernel.Boot.techSupportMode).Values}} | Out-GridView
To disable it on all ESXi hosts use the following:
Get-VMHost | Where {$_.State -eq "Connected" -or $_.State -eq "Maintenance"} | Get-View | Where {$_.Summary.Config.Product.Name -match "i"} | Get-VIObjectByVIView | Set-VMHostAdvancedConfiguration -Name VMkernel.Boot.techSupportMode -Value $false
And to enable it use the following:
Get-VMHost | Where {$_.State -eq "Connected" -or $_.State -eq "Maintenance"} | Get-View | Where {$_.Summary.Config.Product.Name -match "i"} | Get-VIObjectByVIView | Set-VMHostAdvancedConfiguration -Name VMkernel.Boot.techSupportMode -Value $true
Thanks to Duncan and his most excellent site for the constant source of script ideas
London VMUG – My Presentation VMware Update Manager cmdlets











Social comments and analytics for this post…
This post was mentioned on Twitter by alanrenouf: New blog post: PowerCLI: Technical Support Mode http://www.virtu-al.net/2010/03/01/powercli-technical-support-mode/...
Cool stuff Alan!
[...] Alan “the king of powershell” Renouf jumped on this topic immediately and created a couple of lines of script which show you the current setting, disable it for all hosts or enable it for all hosts. Thanks [...]
Question: what tech support mode will this pull for ESXi 4.1 local or remote?