Hello,
I would like to update the Notes field for all the VMs in my environment from a .csv file. To do this I did and export of my environment to a .csv file by using this command:
Get-VM | Select Name, Notes | Export-Csv -path "c:\output\notes.csv" -NoTypeInformation
I have now have list of all VMs and their existing Notes. I manually modified the notes fields keeping the existing and adding descriptions for all the VMs which didn't have notes. I would now like to merge the changes back into vCenter and overwrite any the descriptions within vCenter but my code is erroring out:
Import-Csv "c:\output\notes.csv" | % { Set-VM $_.VMName -Notes $_.Note -Confirm:$false}
Any ideas?
