Introducing Hyper-V Tools – The Ultimate Hyper-V Reporting Tool

HyperVTools is a read only software which aims to provide a quick method of obtaining virtual machine information from a Microsoft Hyper-V host. Information includes name/uptime/OS Version/DNS name/much more! The tool gives you a quick way of creating a report of your machine status and spits out a nicely formatted CSV with details. If you don’t want to use any disk space, you can highlight items in the list and copy to clipboard even!

I originally started working on this when I saw a posting on reddit requesting something that would work like RVTools but for Hyper-V. RVTools is a pretty slick piece of software but unfortunately (or fortunately?) it is geared towards VMWare virtualization products only and thus came the inception of HyperVTools!

This software is still a work in progress and features will be added as I go. As of right now, it is in a usable state and is ready for future updates and eventually it will live up to the claim of being the Ultimate Hyper-V Reporting tool.

Features

  • Connect to a Hyper-V server from Windows 7/8/8.1 x64 or Windows Server 2008/2008r2/2012/2012r2 (including local host – Run as Administrator)
  • Output CSV with details
  • Auto updating logic included (that doesn’t work when you need it)
  • Minor switch details (this is still WIP)
  • Command line mode:
    • HyperVTools.exe -u username -p password -d domain -h hostname -o C:\output.csv
  • much more!

Compatibility

  • .NET 4.0
  • This software has been tested on Windows Server 2012r2
  • Windows Server 2008/2008r2/2012/2012r2 Hyper-V support **WIP**
Namecheap.com

40 thoughts on “Introducing Hyper-V Tools – The Ultimate Hyper-V Reporting Tool”

  1. This is the guy from Reddit that was testing this at home. It’s awesome! Works perfectly for Windows VMs. For some reason it sees my Lubuntu machine at work but not my Linux VMs at home.

    1. Yo! I just uploaded v1.0 which has logging included, could you try again? I really want to get to the bottom of this but I don’t have the resources :-/

      Thanks man, I really appreciate your help

      1. this hyper-v tool sounds like its exactly what im looking for. did anyone see basic instructions for running the tool and what is the overhead on running the tool.

  2. Great tool, was looking for something like this.
    Is there a way to also get cluster information? Like #cpu #core and so on?
    Thanks.
    – Davis

  3. Tool is great, I love it. We would like to be kept up on your updates of the software. Also we have some suggestion to make the tool more valuable if you are open to it?

  4. There might be a problem with the code via Command line mode, in my .bat file. I’ve noticed that there is 2 temp files created, and that these files are building up on each execution. they look like this. I do specify a output path and the output is going there under the name I want it to be, but theses other to file are create in the folder where my .bat file is stored. I’m executing HyperVToolsv1.5.exe version. The 2 file are:\

    hypervtools-2015-06-17_09-54-47-AM.csv
    hypervtools-2015-06-17_09-54-02-AM.txt

  5. Hi, Great tool. I am wanting to use it to extract, VM name , Ram, CPU and Used Disk space per drive. Can you please let me know in the attached Vhd’s field what the file sizes are for?
    I am getting some funny outputs maybe because the disks are dynamic. Are they Disk Used/ Total disk? C:/, D:/ etc up to number of VHD’s
    If you manged to separate these it would be awesome. Also a total disk used would be awesome.

    Cheers

    Simon

    1. Hey Simon, thanks for the comment.

      The attached VHD column format is as such:
      VHDPathName – UsedSize/TotalSize;

      The semi-colon separates multiple attached VHDs, I wanted a way to show which VHDs where attached in a single row and this is what I came up with. If I were to split it, how do you think it should be done? I am thinking of an scenario in which there are 10 attached VHDs, if I were to create new column per VHD, it would mean an additional 10 columns!

      As of now, the VHD column will show all attached VHDs and they are seperated by a semi-colon (;)

  6. Hi,

    I use it to get a quick breakdown of a clients HyperV environment I use RVTools for VMware.

    I need VM Name, vCPU, VRAM, and ideally Total Disk Used.
    A breakdown of each attached Vhd (usedsize and totalsize) as a number would be fine as I can add these to get a total in excel afterwards. I then use this information to determine backup and recovery requirements for the client. At the moment I exported it into a text file and did some edit replace to separate the VHD’s then manually extracted (using a few excel tricks also) the numbers to enable me to add the VHD’s to get a total backup requirement. In some cases a client may wish to exclude a volume from a backup so having the separation is also valuable.
    I just ran it across an environment of 80 VM’s and the most allocated was 4 VHD’s to a single server. So more colums would not be an issue. Juts pop them at the end and people can ignore them if they aren’t relevent.

    Maybe as below:
    C:\Cluster\XX004.Somewhere.os\XXXX\XXXX.2012R2.XX\Virtual Hard Disks\XXXX.vhdx – 28.25390625 GB/126.9990234375 GB;C:\ClusterStorage\XX004.Somewhere\XXXX\XXXX-XXX.vhdx – 145.00390625 GB/299.9990234375

    Would look like this (as a CSV)

    C:\Cluster\XX004.Somewhere.os\XXXX\XXXX.2012R2.XX\Virtual Hard Disks\XXXX.vhdx;28;GB;126;GB;C:\ClusterStorage\XX004.Somewhere\XXXX\XXXX-XXX.vhdx;145;GB;299;GB

    With ; as the tab delimiter it was also interesting that the size is defined in MB,GB, TB. It would be nice to just use GB. Not sure if that is a MS thing.

    Do this and I reckon you will get heaps of traffic on this.

      1. i will do that .. bu this 1.6 version is giving me error

        unhandled exception has occured index was outside the bound of array ..

        but if i use lower version am not getting this error

  7. I have installed this tool (which seeams great) but it doesn’t work with my Hyper V Servers (Windows 2008, 2008 R2, 2012 or 2012 R2). When I connect, i see RAM, OS Version information (from the Hyper V server connected) but 0 VMs found !
    What can I do ? Thanks.

  8. I was Googling looking for RVTools and I saw the link for this. I run a Hyper-V cluster in mu basement for my company/church activities and so I downloaded v1.6 and it’s totally awesome!
    Thank you for developmenting this neat application!

  9. Hi, im still new to this tools.. am able to extract the information however i am not sure how to read the information because it does not capture all the server information.but just a few of it.
    appreciate if you can help me understand better.
    thanks.

  10. Using version 1.6 I kept getting an out of range error. Specifically, “Error encountered while obtain VM details: Index was outside the bounds of the array.”

    Tried a couple of different workstations (Windows 10 and 7) eventually went back to Version 1.2, which worked enough for me. Great tool.

  11. I would like to test the tool on single host without domain, i get the error: user login Information can´t be used for local Connections

    On a node from a Cluster i get only TotalMem and Avail. + Used Information other Things are empty?

    Can you help me?

    1. Which version are you trying this with? I’ve got a beta v1.7 out that supports local hosts, other version do not at the moment.

  12. Thanks for this tip.
    With 1.7beta i can connect to a single host without domain.
    But like the cluster nodes i get RAM but the other informations are blank.
    I test 1.7beta with single and cluster nodes always blank informations.

    1. Do i need special firewall or hyperv settings to get informations – login is with the local administrator or domain administrator.

      1. The 1.7beta version which is out for testing supports local admin, my tool is pretty much making calls via WMI and the current method I was using by providing domain/username/password does not work on a local machine and for that a different method needs to be used to gather the same details.

    1. Haha, thank you….you just made my day 🙂

      I am by no means anywhere near being a teacher but I would not mind helping someone out if they wish to learn something. Let me know where I can help and we can take it from there.

  13. Hi ,
    How can i run this tool using already logged credentials
    Is there any option cause due to security reasons we cant specify user and password

    1. Great question and something for me to look into, looks like there might be a way to do it but I will need to invest some time into implementing.

Leave a Reply

Your email address will not be published. Required fields are marked *