VMware Cloud Community
M2G
Contributor
Contributor
Jump to solution

Exporting Annotations Notes

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

0 Kudos
1 Solution

Accepted Solutions
nielse
Expert
Expert
Jump to solution

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.

@nielsengelen - http://foonet.be - VCP4/5

View solution in original post

0 Kudos
2 Replies
nielse
Expert
Expert
Jump to solution

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.

@nielsengelen - http://foonet.be - VCP4/5
0 Kudos
M2G
Contributor
Contributor
Jump to solution

Thank you, I knew this had to be easy.

0 Kudos