I am trying to get the UUID (or Name) of a VM within its own guest OS (Windows 7). Is there any way to do this? The only way I have been able to do this is if first in the host I do this:
VBoxManage guestproperty set 09c86906-43eb-4556-b9ae-2459fd6749d8 /VirtualBox/GuestInfo/UUID 09c86906-43eb-4556-b9ae-2459fd6749d8
Then in the guest I can query for that property:
VBoxControl.exe -nologo guestproperty get /VirtualBox/GuestInfo/UUID
But it would be nice if there was a way to do this without having me to "setup" from the host environment... and also not assume the guest OS machine name is the VM name (since the machine name can be changed).
Thanks!