This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# Setting env | |
export GOVC_URL=<vCenter FQDN> | |
export GOVC_USERNAME=XXXXX | |
export GOVC_PASSWORD=XXXXX | |
export GOVC_INSECURE=true | |
# Add host names you want to shutdown | |
host_names=("ESXi FQDN#1" "ESXi FQDN#2" "ESXi FQDN#3" "ESXi FQDN#4") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Credentials | |
$vcenter="172.16.xx.xx" | |
$vcsa_user="administrator@vsphere.local" | |
$vcsa_password="VMware1!" | |
#Connect | |
Connect-VIServer $vcenter -User $vcsa_user -Password $vcsa_password –force | |
#Setting | |
$ova_file = "C:\work\xxxxx.ova" |