Just add the VMHost parameter, and perhaps avoid the prompt
Set-VMHost-VMHostESXI1-State'Maintenance'
Set-VMHostFirmware-VMHostESXI1-Restore-Sourcepathc:\ESXIBK\-HostUseruser-HostPasswordpassword -Confirm:$false
Just add the VMHost parameter, and perhaps avoid the prompt
Set-VMHost-VMHostESXI1-State'Maintenance'
Set-VMHostFirmware-VMHostESXI1-Restore-Sourcepathc:\ESXIBK\-HostUseruser-HostPasswordpassword -Confirm:$false