Manage Hyper-V VM Integration Services with PowerShell

How to manage Hyper-V virtual machine integration services through PowerShell.

John Savill

May 3, 2013

1 Min Read
Manage Hyper-V VM Integration Services with PowerShell

Q: How can I view the state and enable or disable Hyper-V integration services for virtual machines through PowerShell?

A. Several VMIntegrationService cmdlets in PowerShell allow management of the integration services for virtual machines (VMs). To view the state of integration services for a given VM, use the command below:

Get-VMIntegrationService -VMName

For example:

PS C:> Get-VMIntegrationService -VMName savdaldc01VMName     Name                    Enabled PrimaryStatusDescription SecondaryStatusDescription------     ----                    ------- ------------------------ --------------------------savdaldc01 Time Synchronization    False   OK                                                 savdaldc01 Heartbeat               True    OK                       OK                        savdaldc01 Key-Value Pair Exchange True    OK                                                 savdaldc01 Shutdown                True    OK                                                 savdaldc01 VSS                     True    OK                                                 

To set an integration service to enabled/disabled use the Enable/Disable -VMIntegrationService cmdlets, for example:

[Enable/Disable]-VMIntegrationService -VMName -Name ""

For example:

 Disable-VMIntegrationService -name "Time Synchronization" -vmname savdalda01

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like