Advertisement
djdee

Find Hyper-V Host for a VM Guest

Jan 31st, 2017
871
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Dim oShell
  2. Dim iValue
  3.  
  4. Set oShell = CreateObject("WScript.Shell")
  5.  
  6. iValue = oShell.RegRead("HKLM\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters\HostName")
  7. wscript.echo iValue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement