Share via


Virtual Machine Manager 2012 R2 - Enabling Integration Services on a host

In your Hyper-V environment, you might have one server or a few hundred servers. When it comes to managing this, manual work is a bit of a cumbersome task, especially when you need to first check things or set something on them all.

This is where PowerShell comes in to play. You can update pretty much most things on a Server/s. In this example, we want to enable the heartbeat Integration Service which was turned off. You can do this line by line or call a variable to update multiple machines at once.

Take note, enabling this heartbeat Integration Service might cause the Virtual Machine to reboot. Launch PowerShell on your VMM Server or a host and run the following command to enable the Heartbeat:

  • get-vm -computername <ServerName> | Get-VMIntegrationService -Name heartbeat* | Enable-VMIntegrationService

Firstly, replace <ServerName> with the computer name that you want to update this on.

The above will update one Server, you could use a variable reading a CSV or TXT file to update multiple servers, for example:

  • $Servers = Import-CSV <Path>
  • get-vm -computername $Servers | Get-VMIntegrationService -Name heartbeat* | Enable-VMIntegrationService