Get VM Name from ID

Feb 22, 2016
7
0
1
41
Hi,

We are using some scripts to automatize some stuff in our company and I have a simple question: Which is the easiest way to get the "Name" from a VM from its id?

Thanks in advance!
Best regards,
Abel.