| Select-Object -ExpandProperty Name
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/cfaa8c15-8b6e-48b7-9d20-90f17f08713b%40googlegroups.com.
Hi Rakesh,I agree with Sam and Jordan. You can take a look at this custom VMware powershell modules to write your own - https://github.com/Akasurde/ansible-vmware_update_managerThanks
On Thu, Nov 14, 2019 at 1:44 AM Jordan Borean <jbor...@gmail.com> wrote:
--You could use something like grep to extract it but you could also add the following in your powershell script| Select-Object -ExpandProperty NameThis must come after your Get-* cmdlet call, i.e. 'Get-VMs | Select-Object -ExpandProperty Name'. This works by taking in the output from the cmdlet and outputting only the values of the Name property.ThanksJordan
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/cfaa8c15-8b6e-48b7-9d20-90f17f08713b%40googlegroups.com.
--Thanks,Abhijeet Kasurde
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6b6794ad-28d5-4373-8811-f5864b7a8d74%40googlegroups.com.