$Server = ""
$connect = Connect-VIServer $server -User $user -Password $pwd
#Import vm name from csv file
#Update VMtools without reboot
$report += $strNewVMName+ "`r`n"
#Send out an email with the names
$smtp = new-object Net.Mail.SmtpClient($smtpServer)
My requirement is, i will add all 50 vm's to deploy.csv and run the script. It should upgrade on the vm servers which require vm tools upgrade and give me output only upgraded servers names. And i need output which vm servers tool upgrade failed as-well.
You forgot for inspect the current state to see which need upgrades.
Thanks. Let me have a look.
You must be logged in to reply to this topic.