Thursday, May 12, 2016

Ways to identify a Virtual Machine

01. Using MSINFO32

Open Run Command and type in msinfo32, The System Model from list specifies whether a Machine is VM or Physical.

If its VM then the value will be 

System Model : Virtual Machine 

If its Physical then the value will be

System Model : Manufacture Model Name

02. Using Powershell Script

Run the below Powershell command from elevated permission

Systeminfo | findstr /i model

Thursday, May 5, 2016

Identifying Hyper-V Virtual Host of a VM

Recently I came across to manage the Virtual Space for the VMs which are running out of space. I had to identify Virtual Host's free space before trying to expand the VHD size as Hyper-V allows to expand it.

You can identify the Hyper-V host name in the guest VM's Registry at the following key:

HKLM\Software\Microsoft\Virtual Machine\Guest\Parameters

Dword HostName should reflect your Hyper-V Host Name where the VM is hosted.

If you feel lazy to get deep into Registry, run the below command from Powershell (I prefer Run as administrator). It works on Windows Server 2008 and higher

PS C:\Windows\System32> (get-item "HKLM:\Software\Microsoft\Virtual Machines\Guest\Parameters").GetValue("HostName")

Wednesday, May 4, 2016

It's me


I am writing this, because I need a change in my regular life
I am writing this, because I am a lazy person that I want to get rid-off
I am writing this, because I want to come out of something which I liked so much
I am writing this, because I want to forget which keeps me floating away from the normal life
I am writing this, because I want to learn writing and speaking
I am writing this, because I am confused. :)