I want to change 1000 vm's remark , but i don't know!
I want to change the vm's note(remark) in the vCenter.
Basically, that can be done with the Set-VM cmdlet and the Notes parameter.
Get-VM -Name MyVM | Set-VM -Notes 'Newnotes'
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
Yes,You are right. Thank you very much !