In your environment running Hyper-V and Virtual Machine Manager, you might come across a request for having Custom Properties on a Virtual Machine. This might be for reporting purposes like having an owner field or a customer field so you can easily identify the Virtual Machine.

It is rather easy to create a Custom Property to show on all Virtual machines, to do this, launch PowerShell on your Server and run the following two commands:

  • Import-Module VirtualMachineManager
  • New-SCCustomProperty -Name “Cost Center” -Description “Cost Center of the object” -AddMember @(“VM”)

Once it has run, you can now go to the Virtual Machine or any virtual machine and look at the Custom Properties and you will see the new Field:

Hope it helps.

By edward