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”)

Virtual machine manager 2012 r2 - create a custom property for all virtual machines

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:

Virtual machine manager 2012 r2 - create a custom property for all virtual machines

Hope it helps.

    wpChatIcon

    Discover more from COLLABORATION PRO

    Subscribe now to keep reading and get access to the full archive.

    Continue reading