Hyper-V has a WMI API that will allow you to create a thumbnail image of any running or paused virtual machine. You can create any sized thumbnail you want (640×480, 800×600, 1024×768 etc…). Creating the image is pretty easy, you just call GetVirtualSystemThumbnailImage passing a reference to an Msvm_VirutalSystemSettingData instance and the size of the image you want… However getting something useful from the returned data is a bit tricky… You get an array of unit8’s that represent pixels, the API doesn’t have much choice and luckily Powershell makes this not an impossible feat. All you have to do is create a new bitmap object and read (marshal) the pixel data into the object.
By Deepak Gupta Posted on ,
Share This Story, Choose Your Platform!
About the Author:
Deepak Gupta is a IT & Web Consultant. He is the founder and CEO of diTii.com & DIT Technologies, where he's engaged in providing Technology Consultancy, Design and Development of Desktop, Web and Mobile applications using various tools and softwares. Sign-up for the Email for daily updates. Google+ Profile.
Microsoft and Hyper-V for HostBasket
Free performance toolkit for Windows HPC Server
@diTii Facebook Page
Recent News Topics