Script pequeno e rápido para Marcar aquela opção de Verificar/Instalar Vmware tools no boot. No caso ele faz somente em um DataCenter específico. import-module VMware.VimAutomation.coreconnect-viserver –server vcenter.name.or.ip -User USER-Password PASS $vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec$vmConfigSpec.Tools = New-Object VMware.Vim.ToolsConfigInfo$vmConfigSpec.Tools.ToolsUpgradePolicy = “UpgradeAtPowerCycle”Get-Datacenter -Name DC_NAME | Get-VM | ForEach { $_.ExtensionData.ReconfigVM_task($vmConfigSpec) } Na última linha, antes de Get-VM você […]
Comandos variados, sem tempo, depois arrumo direitinho… esxcli system maintenanceMode get esxcli system maintenanceMode set –enable=true UPDATE PROFILE:http://vcloud-lab.com/entries/esxi-installation-and-configuration/how-to-update-a-patch-on-an-esxi-host-via-command-line esxcli software sources profile list -d /vmfs/volumes/MAW-STG-2052-Datastore01/ESXi670-202201001.zip esxcli software profile update -d /vmfs/volumes/MAW-STG-2052-Datastore01/ESXi670-202201001.zip -p esxi-profile-XXXX esxcli software profile update -d /vmfs/volumes/MAW-STG-2052-Datastore01/ESXi670-202201001.zip -p ESXi-6.7.0-20220104001-standard UDPDATE HOST: vmware -vl esxcli software vib install -d /vmfs/volumes/MAW-STG-2052-Datastore01/ESXi670-202201001.zip reboot esxcli system maintenanceMode […]