Come and Check our BETA Alpha version of Powershellcenter.net
Send me your comment to Powershell@powershellcenter.com

Synopsis

Modifies isolation settings for a virtual network adapter.

Syntax

Set-VmNetworkAdapterIsolation [-VMName] <String[]> [-AllowUntaggedTraffic <Boolean>] [-ComputerName <String[]>] [-DefaultIsolationID <Int32>] [-IsolationMode <VMNetworkAdapterIsolationMode>] [-MultiTenantStack <OnOffState>] [-Passthru] [-VMNetworkAdapterName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VmNetworkAdapterIsolation [-AllowUntaggedTraffic <Boolean>] [-ComputerName <String[]>] [-DefaultIsolationID <Int32>] [-IsolationMode <VMNetworkAdapterIsolationMode>] [-MultiTenantStack <OnOffState>] [-Passthru] [-VMNetworkAdapterName <String>] -ManagementOS [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VmNetworkAdapterIsolation [-VM] <VirtualMachine[]> [-AllowUntaggedTraffic <Boolean>] [-DefaultIsolationID <Int32>] [-IsolationMode <VMNetworkAdapterIsolationMode>] [-MultiTenantStack <OnOffState>] [-Passthru] [-VMNetworkAdapterName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VmNetworkAdapterIsolation [-VMNetworkAdapter] <VMNetworkAdapterBase[]> [-AllowUntaggedTraffic <Boolean>] [-DefaultIsolationID <Int32>] [-IsolationMode <VMNetworkAdapterIsolationMode>] [-MultiTenantStack <OnOffState>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Set-VmNetworkAdapterIsolation cmdlet modifies isolation settings for a virtual network adapter. You can isolate a virtual machine adapter by using virtual local area network (VLAN), Hyper-V Network Virtualization or a third party virtualization solution. You can specify the isolation method and modify other settings, which include multitenancy settings. For more information about multitenancy, see the Add-VmNetworkAdapterRoutingDomainMapping cmdlet.

Parameters

-AllowUntaggedTraffic [<Boolean>]

Indicates whether the virtual machine sends and receives untagged traffic.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-ComputerName [<String[]>]

Specifies an array of Hyper-V hosts. The cmdlet modifies isolation settings for virtual machines hosted by the computers that you specify.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-DefaultIsolationID [<Int32>]

Specifies the ID of the network for traffic to the default compartment on virtual machines that have multitenancy enabled.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-IsolationMode [<VMNetworkAdapterIsolationMode>]

Specifies the isolation mode for the adapter. The acceptable values for this parameter are:

-- NativeVirtualSubnet. Hyper-V Network Virtualization.

-- ExternalVirtualSubnet. A third party network virtualization solution.

-- VLAN.

-- None.

If you specify a value of None, the network adapter uses its default isolation mode. Set the default isolation mode by using the Set-VMNetworkAdapterVlan cmdlet or the Set-VMNetworkAdapter cmdlet.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-ManagementOS [<SwitchParameter>]

Indicates that the cmdlet operates on the parent or host operating system. If you specify this parameter, this cmdlet modifies isolation settings for the parent or host operating system.

Required?   true
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-MultiTenantStack [<OnOffState>]

Specifies whether to use multiple isolation IDs for the virtual machine. The acceptable values for this parameter are:

-- On. Indicate isolation IDs so that the virtual machine provides services to multiple tenants on different isolation subnets.

-- Off. Do not indicate isolation IDs to virtual machine.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-Passthru [<SwitchParameter>]

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-VM [<VirtualMachine[]>]

Specifies an array of virtual machine objects. The cmdlet modifies isolation settings for adapters that belong to the virtual machines that you specify. To obtain a virtual machine object, use the Get-VM cmdlet.

Required?   true
Position?   1
Default value?  
Accept pipeline input?   True (ByValue)
Accept wildcard characters?   false

-VMName [<String[]>]

Specifies an array of names of virtual machines. The cmdlet modifies isolation settings for adapters that belong to the virtual machines that you specify.

Required?   true
Position?   1
Default value?  
Accept pipeline input?   True (ByValue)
Accept wildcard characters?   false

-VMNetworkAdapter [<VMNetworkAdapterBase[]>]

Specifies an array VM network adapters as VMNetworkAdapterBase objects. The cmdlet modifies isolation settings for the adapters that you specify. To obtain a network adapter, use the Get-VMNetworkAdapter cmdlet.

Required?   true
Position?   1
Default value?  
Accept pipeline input?   True (ByValue)
Accept wildcard characters?   false

-VMNetworkAdapterName [<String>]

Specifies the name of a virtual network adapter. The cmdlet modifies isolation settings for the adapters that you specify.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.

Required?   false
Position?   named
Default value?   false
Accept pipeline input?   false
Accept wildcard characters?   false

-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?   false
Position?   named
Default value?   false
Accept pipeline input?   false
Accept wildcard characters?   false

Input Type

None

Return Type

Microsoft.HyperV.PowerShell.VMNetworkAdapterIsolation

Notes

Examples

Example 1: Set isolation mode for a virtual machine

PS> PS C:\> Set-VMNetworkAdapterIsolation -VMName "TSQA01" -AllowUntaggedTraffic $False -IsolationMode NativeVirtualSubnet -MultiTenantStack On

This command sets the isolation mode of the virtual machine named TSQA01 to NativeVirtualSubnet, which indicates Hyper-V Network Virtualization. The virtual machine does not accept untagged traffic, but the MultitenantStack parameter has a value of On, so the virtual machine can provide services to multiple tenants.

Example 2: Set isolation mode and untagged traffic setting for a virtual machine

PS> PS C:\> Set-VMNetworkAdapterIsolation -VMName "TSQA01" -AllowUntaggedTraffic $True -IsolationMode VLAN -DefaultIsolationID 1 -MultiTenantStack On

This command sets the isolation mode for virtual machine named TSQA01 to be VLAN. The virtual machine accepts untagged traffic, which is sent and received on VLAN 1, specified by the DefaultIsolationID parameter. Untagged traffic goes to the default compartment in the virtual machine. Multitenancy is enabled, therefore, the virtual machine receives isolation subnet and routing domain information.

Synopsis

Configures features of the virtual network adapter in a virtual machine or the management operating system.

Syntax

Set-VMNetworkAdapter [-AllowTeaming <OnOffState>] [-ComputerName <String[]>] [-DhcpGuard <OnOffState>] [-DynamicIPAddressLimit <UInt32>] [-IeeePriorityTag <OnOffState>] [-IovInterruptModeration <IovInterruptModerationValue>] [-IovQueuePairsRequested <UInt32>] [-IovWeight <UInt32>] [-IPsecOffloadMaximumSecurityAssociation <UInt32>] [-MacAddressSpoofing <OnOffState>] [-MandatoryFeatureId <String[]>] [-MaximumBandwidth <Int64>] [-MinimumBandwidthAbsolute <Int64>] [-MinimumBandwidthWeight <UInt32>] [-Name <String>] [-NotMonitoredInCluster <Boolean>] [-Passthru] [-PortMirroring <VMNetworkAdapterPortMirroringMode>] [-ResourcePoolName <String>] [-RouterGuard <OnOffState>] [-StormLimit <UInt32>] [-TestReplicaPoolName <String>] [-TestReplicaSwitchName <String>] [-VirtualSubnetId <UInt32>] [-VMNetworkAdapterName <String>] [-VmqWeight <UInt32>] -ManagementOS [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMNetworkAdapter [-VMName] <String> [-AllowTeaming <OnOffState>] [-ComputerName <String[]>] [-DhcpGuard <OnOffState>] [-DynamicIPAddressLimit <UInt32>] [-DynamicMacAddress] [-IeeePriorityTag <OnOffState>] [-IovInterruptModeration <IovInterruptModerationValue>] [-IovQueuePairsRequested <UInt32>] [-IovWeight <UInt32>] [-IPsecOffloadMaximumSecurityAssociation <UInt32>] [-MacAddressSpoofing <OnOffState>] [-MandatoryFeatureId <String[]>] [-MaximumBandwidth <Int64>] [-MinimumBandwidthAbsolute <Int64>] [-MinimumBandwidthWeight <UInt32>] [-Name <String>] [-NotMonitoredInCluster <Boolean>] [-Passthru] [-PortMirroring <VMNetworkAdapterPortMirroringMode>] [-ResourcePoolName <String>] [-RouterGuard <OnOffState>] [-StaticMacAddress <String>] [-StormLimit <UInt32>] [-TestReplicaPoolName <String>] [-TestReplicaSwitchName <String>] [-VirtualSubnetId <UInt32>] [-VMNetworkAdapterName <String>] [-VmqWeight <UInt32>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMNetworkAdapter [-VMNetworkAdapter] <VMNetworkAdapterBase> [-AllowTeaming <OnOffState>] [-DhcpGuard <OnOffState>] [-DynamicIPAddressLimit <UInt32>] [-DynamicMacAddress] [-IeeePriorityTag <OnOffState>] [-IovInterruptModeration <IovInterruptModerationValue>] [-IovQueuePairsRequested <UInt32>] [-IovWeight <UInt32>] [-IPsecOffloadMaximumSecurityAssociation <UInt32>] [-MacAddressSpoofing <OnOffState>] [-MandatoryFeatureId <String[]>] [-MaximumBandwidth <Int64>] [-MinimumBandwidthAbsolute <Int64>] [-MinimumBandwidthWeight <UInt32>] [-NotMonitoredInCluster <Boolean>] [-Passthru] [-PortMirroring <VMNetworkAdapterPortMirroringMode>] [-ResourcePoolName <String>] [-RouterGuard <OnOffState>] [-StaticMacAddress <String>] [-StormLimit <UInt32>] [-TestReplicaPoolName <String>] [-TestReplicaSwitchName <String>] [-VirtualSubnetId <UInt32>] [-VmqWeight <UInt32>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMNetworkAdapter [-VM] <VirtualMachine> [-AllowTeaming <OnOffState>] [-DhcpGuard <OnOffState>] [-DynamicIPAddressLimit <UInt32>] [-DynamicMacAddress] [-IeeePriorityTag <OnOffState>] [-IovInterruptModeration <IovInterruptModerationValue>] [-IovQueuePairsRequested <UInt32>] [-IovWeight <UInt32>] [-IPsecOffloadMaximumSecurityAssociation <UInt32>] [-MacAddressSpoofing <OnOffState>] [-MandatoryFeatureId <String[]>] [-MaximumBandwidth <Int64>] [-MinimumBandwidthAbsolute <Int64>] [-MinimumBandwidthWeight <UInt32>] [-Name <String>] [-NotMonitoredInCluster <Boolean>] [-Passthru] [-PortMirroring <VMNetworkAdapterPortMirroringMode>] [-ResourcePoolName <String>] [-RouterGuard <OnOffState>] [-StaticMacAddress <String>] [-StormLimit <UInt32>] [-TestReplicaPoolName <String>] [-TestReplicaSwitchName <String>] [-VirtualSubnetId <UInt32>] [-VMNetworkAdapterName <String>] [-VmqWeight <UInt32>] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Set-VMNetworkAdapter cmdlet configures features of the virtual network adapter in a virtual machine or the management operating system.

Parameters

-ComputerName [<String[]>]

Specifies one or more Hyper-V hosts on which features of the network adapter are to be configured. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer

Synopsis

Sets the subnet, subnet mask, and/or priority of a migration network.

Syntax

Set-VMMigrationNetwork [-Subnet] <String> [[-NewSubnet] <String>] [-ComputerName <String[]>] [-NewPriority <UInt32>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Set-VMMigrationNetwork cmdlet sets the subnet, subnet mask, and/or priority of a migration network.

Parameters

-ComputerName [<String[]>]

Specifies one or more Hyper-V hosts on which migration network properties are to be set. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer

Synopsis

Configures the memory of a virtual machine.

Syntax

Set-VMMemory [-VMName] <String[]> [-Buffer <Int32>] [-ComputerName <String[]>] [-DynamicMemoryEnabled <Boolean>] [-MaximumAmountPerNumaNodeBytes <Int64>] [-MaximumBytes <Int64>] [-MinimumBytes <Int64>] [-Passthru] [-Priority <Int32>] [-ResourcePoolName <String>] [-StartupBytes <Int64>] [<CommonParameters>]

Set-VMMemory [-VM] <VirtualMachine[]> [-Buffer <Int32>] [-DynamicMemoryEnabled <Boolean>] [-MaximumAmountPerNumaNodeBytes <Int64>] [-MaximumBytes <Int64>] [-MinimumBytes <Int64>] [-Passthru] [-Priority <Int32>] [-ResourcePoolName <String>] [-StartupBytes <Int64>] [<CommonParameters>]

Set-VMMemory [-VMMemory] <VMMemory[]> [-Buffer <Int32>] [-DynamicMemoryEnabled <Boolean>] [-MaximumAmountPerNumaNodeBytes <Int64>] [-MaximumBytes <Int64>] [-MinimumBytes <Int64>] [-Passthru] [-Priority <Int32>] [-ResourcePoolName <String>] [-StartupBytes <Int64>] [<CommonParameters>]

Detailed Description

The Set-VMMemory cmdlet configures the memory of a virtual machine.

Parameters

-Buffer [<Int32>]

Specifies the percentage of memory to reserve as a buffer in the virtual machine to be configured. Allowed values range from 5 to 2000.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-ComputerName [<String[]>]

Specifies one or more Hyper-V hosts on which the memory of a virtual machine is to be configured. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer

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>]

Detailed Description

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

Parameters

-ComputerName [<String[]>]

Specifies one or more Hyper-V hosts to be configured. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer