# POWER SHELL QUESTIONS

**URL:** <https://forum.ansible.com/t/power-shell-questions/30976>\
**Category:** Ansible Project\
**Created:** [August 7, 2019, 2:52pm UTC](https://forum.ansible.com/t/power-shell-questions/30976 "2019-08-07T14:52:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronny\_saavedra](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@ronny\_saavedra](https://forum.ansible.com/u/ronny_saavedra)\
**Post date:** [August 7, 2019, 2:52pm UTC](https://forum.ansible.com/t/power-shell-questions/30976/1 "2019-08-07T14:52:45Z")

</div>

**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.

 ![Captura de pantalla_2019-08-07_09-49-52.png](https://us1.discourse-cdn.com/ansible/original/2X/6/64508aa19ad1cfd0c4a84e6d1ad29aeb6d7b6ed0.png)

---

<div class="post-metadata">

**Author:** ![vinod93pop](https://avatars.discourse-cdn.com/v4/letter/v/ea5d25/32.png) [@vinod93pop](https://forum.ansible.com/u/vinod93pop)\
**Post date:** [August 7, 2019, 4:04pm UTC](https://forum.ansible.com/t/power-shell-questions/30976/2 "2019-08-07T16:04:36Z")

</div>

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](https://docs.ansible.com/ansible/latest/scenario_guides/guide_vmware.html)

I used personally in my environment

> **(attachments)**
>
> ![Captura de pantalla_2019-08-07_09-49-52.png](https://us1.discourse-cdn.com/ansible/original/2X/6/64508aa19ad1cfd0c4a84e6d1ad29aeb6d7b6ed0.png)
