PowerShell Logo Small

Set-VMHost



This is the built-in help made by Microsoft for the command 'Set-VMHost', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Configures a Hyper-V host.

SYNTAX


Set-VMHost [[-ComputerName] <String[]>] [-EnableEnhancedSessionMode <Boolean>] [-FibreChannelWwnn <String>] [-FibreChannelWwpnMaximum <String>] [-FibreChannelWwpnMinimum
<String>] [-MacAddressMaximum <String>] [-MacAddressMinimum <String>] [-MaximumStorageMigrations <UInt32>] [-MaximumVirtualMachineMigrations <UInt32>] [-NumaSpanningEnabled
<Boolean>] [-Passthru] [-ResourceMeteringSaveInterval <TimeSpan>] [-UseAnyNetworkForMigration <Boolean>] [-VirtualHardDiskPath <String>]
[-VirtualMachineMigrationAuthenticationType <MigrationAuthenticationType>] [-VirtualMachineMigrationPerformanceOption <VMMigrationPerformance>] [-VirtualMachinePath
<String>] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-VMHost cmdlet configures a Hyper-V host.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkID=306945

REMARKS

<

Examples


Example 1

PS C:\>Set-VMHost -MaximumVirtualMachineMigrations 10 –MaximumStorageMigrations 10



This example configures the local Hyper-V host to allow 10 simultaneous live migrations and storage migrations.




Example 2

PS C:\>Set-VMHost -MacAddressMinimum 00155D020600 -MacAddressMaximum 00155D0206FF



This example configures a range of MAC addresses range for the local Hyper-V host.




Example 3

PS C:\>Set-VMHost –UseAnyNetworkForMigration $true



This example enables the use of any network for incoming live migrations on the local Hyper-V host.




Example 4

PS C:\>Set-VMHost –VirtualHardDiskPath "C:\Hyper-V\Virtual Hard Disks" –VirtualMachinePath "C:\Hyper-V\Configuration Files"



This example specifies new default locations for virtual hard disksand virtual machines on the local Hyper-V host.




Example 5

PS C:\>Set-VMHost -FibreChannelWwnn C003FF0000FFFF00 -FibreChannelWwpnMinimum C003FF661D200000 -FibreChannelWwpnMaximum C003FF661D200000



This example configures Fibre Channel host settings on the local Hyper-V host.




Example 6

PS C:\>Set-VMHost –NumaSpanningEnabled $false



This example disables NUMA spanning on the local Hyper-V host.




Example 7

PS C:\>Set-VMHost -ResourceMeteringSaveInterval 01:30:00



This example configures the local Hyper-V host to save data that tracks resource consumption every hour and a half.




Example 8

PS C:\>Set-VMHost –VirtualMachineMigrationAuthenticationType Kerberos



The example configures the local Hyper-V host to use Kerberos to authenticate incoming live migrations.