thanks. this helped
$Shelltimeout = Get-VMHost | Select Name, @{N="settings";E={(Get-VMHostAdvancedConfiguration-vmhost $_ -name UserVars.ESXiShellTimeOut).values}}
but when i do this in a script
$myItem.Shelltimeout = $Shelltimeout.settings , its blank. when i run this on powershell, get this.. PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> write-ho thanks
st $shelltimeout
@{Name=xxx1; settings=0} @{Name=xxx2; settings=12000}