Automation

 View Only
  • 1.  Exporting Annotations Notes

    Posted Jun 22, 2012 10:01 AM

    Hello everyone

    I'd like to clean up the notes section under annotations a bit. A few years back, we were using vranger and it would save backup stati to that particular field.

    Unfortunately, it's not as easy as just resetting the field to nothing as, in the meantime, meaningful content has been added. I know how to set the field content using powercli, but for the life of me I can't seem to find the function that would parse the content that is in it at the moment.

    Get-Annotation, as far as I've seen, will only parse user generated fields. Am I just using this wrong or is there even such a function?

    Regards,

    Marco



  • 2.  RE: Exporting Annotations Notes
    Best Answer

    Posted Jun 22, 2012 10:16 AM

    Try something like this:

    Connect-VIServer localhost | Out-Null

    $vm = Get-VM | Select Name, Notes
    Write-Output $vm

    Disconnect-VIServer localhost -Confirm:$false

    This will show you the VM name and the standard notes.



  • 3.  RE: Exporting Annotations Notes

    Posted Jun 22, 2012 11:09 AM

    Thank you, I knew this had to be easy.