Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$False
$creds = Get-Credential -Message "Enter credentials for Lockdown Exception User"
$vmhosts = @()
101..109 | foreach { $vmhosts += "namehost" + $_.ToString("000") + ".vmware.com" }
foreach ($vmhost in $vmhosts){
connect-viserver $vmhost -Credential $creds
Set-vmhost -State Maintenance
Set-VMHostFirmware -VMhost $vmhost -ResetToDefaults
disconnect-viserver * -Confirm:$False
}