Tuesday, 17 January 2017

Powershell - how to get virtual machine GUID / ID (easiest way) from the hypervisor

Hi,
Today, easy thing to manage, but of course - if you now how to do it.
To get VM ID from hypervisor, for example - to manage virtual machine from the powershell direct - you need to run simple command in the administrator session:

(get-vm virtualmachinename).id


5 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Correct way is (Get-VM vmname).PersistentID

    ReplyDelete
  3. Intriguing theme for a blog. I have been looking the Internet for no particular reason and happened upon your site. Fantastic post. Much appreciated a ton for sharing your insight! It is extraordinary to see that a few people still invest an exertion into dealing with their sites. I'll make certain to inquire again genuine soon. buy windows vps

    ReplyDelete
  4. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here keep up the good work idm crack

    ReplyDelete
  5. (get-vm virtualmachinename).id, that's it. - I wish all guides to be so easy

    ReplyDelete