Automation

 View Only
  • 1.  Notes property of a VM in Get-View

    Posted Sep 29, 2020 03:42 PM

    Is there any property in Get-View that can retrieve the notes of a VM?

    @{N='Notes';E={(Get-VM $_.Name).Notes}} consumes a lot of time, when run against several VMs. I prefer to use Get-View $vm over Get-VM.



  • 2.  RE: Notes property of a VM in Get-View
    Best Answer

    Posted Sep 29, 2020 04:06 PM

    Try like this

    Get-View -ViewType VirtualMachine |

    Select Name,

        @{N='Notes';E={$_.Config.Annotation}}