POWER SHELL QUESTIONS

Good morning, I’m in a vcenter using powershell commands for Linux machines, I’m trying to rename or change (Name for CPU and NumCpu for CPUs) but it doesn’t work out, I hope you can help me.

The command used is this:
PS /home/alex> Get-vm | Where-object {$.Notes -like “103107”} | Select-Object Name, PowerState, @{N=“DnsName”; E={$.ExtensionData.Guest.Hostname}}, NumCpu, MemoryGB

I want to change the bone red ones to rename them.

But when it comes to Linux why don’t you use ansible modules for VMware . They are so way have more modules

https://docs.ansible.com/ansible/latest/scenario_guides/guide_vmware.html

I used personally in my environment

(attachments)