Posts Tagged ‘ESXi Shell for the host has been enabled’

How to suppress annoying shell warnings on your ESXi hosts in vCenter!

July 19th, 2014

So there you are logging into one of your vCenter’s and then WHOA WHAT IS GOING ON, WHY IS THERE A YELLOW TRIANGLE ON MY SERVER

Annoying Shell Warning on ESXi for ESXi Shell and SSH enabled

Then you click on your server, go to the “Summary” tab and notice it has some ERRORS! Oh my! But you might say to yourself… “Yea, I enabled remote ssh and local shell, so why is it warning me about this?!”

Well, now you don’t need to be annoyed by non-essential ‘warning’ messages which detract from REAL and ACTUAL error messages!


This is easily enough fixed by simply going to EACH of your servers, clicking “Configuration” then going to the “Advanced Settings” under Software, drilling down to “UserVars” finding “UserVars.SuppressShellWarning” and changing the value from “0” to “1”

But I don’t wanna do it manually!

Yea. Me neither. I’d rather execute this VERY simply using a single PowerCLI script.  I’ve found some really useful scripts out there which do this in 5-7 lines! That’s awesome…. I hate mult-line scripts unless I SPECIFICALLY need to do multi-line.  So here it is all in one-line!

Disclaimer: The assumption is that you’re using Connect-VIServer in order to connect to your one or multiple vCenters.

Set-VMHostAdvancedConfiguration –VMHost * –Name UserVars.SuppressShellWarning –Value 1

Poof! That is it, and it’ll go through one by one talking to each of your vCenters and enumerating out each of the underlying hosts and change this value!  It literally cannot get any easier than that! <3

Tags: , , , , ,
Posted in PowerCLI, Virtualization, vmware | Comments (0)

  • Archives