Basically, that can be done with the Set-VM cmdlet and the Notes parameter.
Get-VM -Name MyVM | Set-VM -Notes 'Newnotes'
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank you very much! But your method requires manual verification。I make it.
.I make a csv(utf-8) and import it to powercli 。 use the code in the pic , to change the vm's notes without manual verification。
How to make it without confirmation?
Like this
Get-VM -Name MyVM | Set-VM -Notes 'Newnotes' -Confirm:$false
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Yes,You are right. Thank you very much !