Hi community,
I'm now looking to create a script to semi automate the VM Tools and Virtual HW upgrade.. I've searched and the script which I got runs on all the VMs in a vcenter. Which will not be a good option for me as we need approval from BUs..
Here is what I've planned...and the reason is we work on a list of change records that have approved VMs for this upgrade..
1. Script imports a list of VMs from a location (using Import-csv)
2. Gets an output with VMs Name, Cluster Name, Nic Count, IP Addresses, WINS IPs (I'm not sure how to pull out WINS IPs..I can do rest of them)
3. Script updates the VM Tools version and reboots
4. After reboot script waits for about 5 mins and shuts down the VM and Upgrades the virtual hardware.
5. Start the VM and wait till new hardware changes are made to the VM and finally reboot again.
Can this be done simultaneously on say 10 VMs at a time? Also can this be done interactively using "Write-Host" so we can see which VM script is working on currently?
Also after completing all this step 2 will run again and output is written to a different file so we can check if any nics or ip addresses are gone..(we ran into network issues while upgrading hardware last time)
Thanks for your help in advance!!
VMSavvy :smileyhappy: