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

Synopsis

Configures the RemoteFX 3D video adapter of a virtual machine.

Syntax

Set-VMRemoteFx3dVideoAdapter [-VMName] <String[]> [[-MonitorCount] <Byte>] [[-MaximumResolution] <String>] [-ComputerName <String[]>] [-Passthru] [<CommonParameters>]

Set-VMRemoteFx3dVideoAdapter [-VM] <VirtualMachine[]> [[-MonitorCount] <Byte>] [[-MaximumResolution] <String>] [-Passthru] [<CommonParameters>]

Set-VMRemoteFx3dVideoAdapter [-VMRemoteFx3dVideoAdapter] <VMRemoteFx3DVideoAdapter[]> [[-MonitorCount] <Byte>] [[-MaximumResolution] <String>] [-Passthru] [<CommonParameters>]

Detailed Description

The Set-VMRemoteFx3dVideoAdapter cmdlet configures the RemoteFX 3D video adapter of a virtual machine.

Parameters

-ComputerName [<String[]>]

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

Synopsis

Configures one or more processors of a virtual machine.

Syntax

Set-VMProcessor [-VMName] <String[]> [-CompatibilityForMigrationEnabled <Boolean>] [-CompatibilityForOlderOperatingSystemsEnabled <Boolean>] [-ComputerName <String[]>] [-Count <Int64>] [-Maximum <Int64>] [-MaximumCountPerNumaNode <Int32>] [-MaximumCountPerNumaSocket <Int32>] [-Passthru] [-RelativeWeight <Int32>] [-Reserve <Int64>] [-ResourcePoolName <String>] [<CommonParameters>]

Set-VMProcessor [-VM] <VirtualMachine[]> [-CompatibilityForMigrationEnabled <Boolean>] [-CompatibilityForOlderOperatingSystemsEnabled <Boolean>] [-Count <Int64>] [-Maximum <Int64>] [-MaximumCountPerNumaNode <Int32>] [-MaximumCountPerNumaSocket <Int32>] [-Passthru] [-RelativeWeight <Int32>] [-Reserve <Int64>] [-ResourcePoolName <String>] [<CommonParameters>]

Set-VMProcessor [-VMProcessor] <VMProcessor[]> [-CompatibilityForMigrationEnabled <Boolean>] [-CompatibilityForOlderOperatingSystemsEnabled <Boolean>] [-Count <Int64>] [-Maximum <Int64>] [-MaximumCountPerNumaNode <Int32>] [-MaximumCountPerNumaSocket <Int32>] [-Passthru] [-RelativeWeight <Int32>] [-Reserve <Int64>] [-ResourcePoolName <String>] [<CommonParameters>]

Detailed Description

The Set-VMProcessor cmdlet configures one or more processors of a virtual machine.

Parameters

-ComputerName [<String[]>]

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

Synopsis

Configures the virtual LAN settings for the traffic through a virtual network adapter.

Syntax

Set-VMNetworkAdapterVlan [-VMName] <String[]> [-Access] [-AllowedVlanIdList <String>] [-Community] [-ComputerName <String[]>] [-Isolated] [-NativeVlanId <Int32>] [-Passthru] [-PrimaryVlanId <Int32>] [-Promiscuous] [-SecondaryVlanId <Int32>] [-SecondaryVlanIdList <String>] [-Trunk] [-Untagged] [-VlanId <Int32>] [-VMNetworkAdapterName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMNetworkAdapterVlan [-Access] [-AllowedVlanIdList <String>] [-Community] [-ComputerName <String[]>] [-Isolated] [-NativeVlanId <Int32>] [-Passthru] [-PrimaryVlanId <Int32>] [-Promiscuous] [-SecondaryVlanId <Int32>] [-SecondaryVlanIdList <String>] [-Trunk] [-Untagged] [-VlanId <Int32>] [-VMNetworkAdapterName <String>] -ManagementOS [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMNetworkAdapterVlan [-VM] <VirtualMachine[]> [-Access] [-AllowedVlanIdList <String>] [-Community] [-Isolated] [-NativeVlanId <Int32>] [-Passthru] [-PrimaryVlanId <Int32>] [-Promiscuous] [-SecondaryVlanId <Int32>] [-SecondaryVlanIdList <String>] [-Trunk] [-Untagged] [-VlanId <Int32>] [-VMNetworkAdapterName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMNetworkAdapterVlan [-VMNetworkAdapter] <VMNetworkAdapterBase[]> [-Access] [-AllowedVlanIdList <String>] [-Community] [-Isolated] [-NativeVlanId <Int32>] [-Passthru] [-PrimaryVlanId <Int32>] [-Promiscuous] [-SecondaryVlanId <Int32>] [-SecondaryVlanIdList <String>] [-Trunk] [-Untagged] [-VlanId <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Set-VMNetworkAdapterVlan cmdlet configures virtual LAN settings for the traffic through a virtual network adapter. Access, Trunk, Private VLAN (isolated, community, or promiscuous), and untagged are mutually exclusive.

Parameters

-Access [<SwitchParameter>]

Specifies Access mode for the virtual machine network adapter. This parameter must be specified in conjunction with parameter VlanId.

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

-AllowedVlanIdList [<String>]

Specifies a list of virtual LANs allowed on a virtual machine network adapter. This parameter must be specified in conjunction with the switch parameter Trunk.

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

-Community [<SwitchParameter>]

Specifies Community mode for the virtual machine network adapter to be configured. This parameter must be specified in conjunction with parameters PrimaryVlanId and SecondaryVlanId.

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 virtual LAN settings on a virtual machine 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 virtual subnets on a routing domain.

Syntax

Set-VmNetworkAdapterRoutingDomainMapping [-VMName] <String[]> [-ComputerName <String[]>] [-IsolationID <Int32[]>] [-IsolationName <String[]>] [-NewRoutingDomainName <String>] [-Passthru] [-RoutingDomainID <String>] [-RoutingDomainName <String>] [-VMNetworkAdapterName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VmNetworkAdapterRoutingDomainMapping [-ComputerName <String[]>] [-IsolationID <Int32[]>] [-IsolationName <String[]>] [-NewRoutingDomainName <String>] [-Passthru] [-RoutingDomainID <String>] [-RoutingDomainName <String>] [-VMNetworkAdapterName <String>] -ManagementOS [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VmNetworkAdapterRoutingDomainMapping [-InputObject] <VMNetworkAdapterRoutingDomainSetting> [-IsolationID <Int32[]>] [-IsolationName <String[]>] [-NewRoutingDomainName <String>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VmNetworkAdapterRoutingDomainMapping [-VM] <VirtualMachine[]> [-IsolationID <Int32[]>] [-IsolationName <String[]>] [-NewRoutingDomainName <String>] [-Passthru] [-RoutingDomainID <String>] [-RoutingDomainName <String>] [-VMNetworkAdapterName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VmNetworkAdapterRoutingDomainMapping [-VMNetworkAdapter] <VMNetworkAdapterBase[]> [-IsolationID <Int32[]>] [-IsolationName <String[]>] [-NewRoutingDomainName <String>] [-Passthru] [-RoutingDomainID <String>] [-RoutingDomainName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Set-VmNetworkAdapterRoutingDomainMapping cmdlet sets virtual subnets on a routing domain.

Parameters

-ComputerName [<String[]>]

Specifies an array of Hyper-V hosts. The cmdlet adds the virtual subnets to the routing domain on the Hyper-V hosts that you specify.

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

-InputObject [<VMNetworkAdapterRoutingDomainSetting>]

Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.

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

-IsolationID [<Int32[]>]

Specifies an array of IDs of virtual subnets. The cmdlet adds the virtual subnets that you specify to the routing domain. The subnets use VLAN or Hyper-V Network Virtualization. For more information about isolation IDs, see the Set-VmNetworkAdapterIsolation cmdlet.

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

-IsolationName [<String[]>]

Specifies an array of names of virtual subnets. The cmdlet adds the virtual subnets that you specify to the routing domain. The subnets use VLAN or Hyper-V Network Virtualization.

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

-ManagementOS [<SwitchParameter>]

Indicates that the cmdlet operates on the parent partition or host operating system.

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

-NewRoutingDomainName [<String>]

Specifies a new name for the routing domain.

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

-RoutingDomainID [<String>]

Specifies the ID of a routing domain. The ID of a routing domain is a system-assigned GUID. The cmdlet adds the virtual subnets to the routing domain that you specify.

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

-RoutingDomainName [<String>]

Specifies the name of a routing domain. The cmdlet adds the virtual subnets to the routing domain that you specify.

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 adds the virtual subnets to the routing domain from the network interfaces 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 adds the virtual subnets to the routing domain from the network interfaces 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

-VMNetworkAdapter [<VMNetworkAdapterBase[]>]

Specifies an array of virtual network adapters as a VMNetworkAdapterBase object. The cmdlet adds the virtual subnets to the routing domain on 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 adds the virtual subnets to the routing domain on the adapter 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

Return Type

Notes

Examples

Example 1: Set a virtual subnet on a routing domain

PS> PS C:\>Set-VMNetworkAdapterRoutingDomainMapping -VMName "Gateway01" -VMNetworkAdapterName "Internal NIC" -RoutingDomainID "{5a07361e-6a54-49fc-9210-bfbf14a5c56f}" -IsolationID 6001

This command sets the virtual subnet that has the ID 6001 for the specified routing domain. The command specifies that the routing domain is on the network adapter named Internal NIC that belongs to the multitenant virtual machine named Gateway01.

Synopsis

Configures the IP address of a virtual network adapter to be used when a virtual machine fails over.

Syntax

Set-VMNetworkAdapterFailoverConfiguration [-VMName] <String> [-ClearFailoverIPv4Settings] [-ClearFailoverIPv6Settings] [-ComputerName <String[]>] [-IPv4Address <String>] [-IPv4AlternateDNSServer <String>] [-IPv4DefaultGateway <String>] [-IPv4PreferredDNSServer <String>] [-IPv4SubnetMask <String>] [-IPv6Address <String>] [-IPv6AlternateDNSServer <String>] [-IPv6DefaultGateway <String>] [-IPv6PreferredDNSServer <String>] [-IPv6SubnetPrefixLength <Int32>] [-PassThru] [-VMNetworkAdapterName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMNetworkAdapterFailoverConfiguration [-VM] <VirtualMachine> [-ClearFailoverIPv4Settings] [-ClearFailoverIPv6Settings] [-IPv4Address <String>] [-IPv4AlternateDNSServer <String>] [-IPv4DefaultGateway <String>] [-IPv4PreferredDNSServer <String>] [-IPv4SubnetMask <String>] [-IPv6Address <String>] [-IPv6AlternateDNSServer <String>] [-IPv6DefaultGateway <String>] [-IPv6PreferredDNSServer <String>] [-IPv6SubnetPrefixLength <Int32>] [-PassThru] [-VMNetworkAdapterName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMNetworkAdapterFailoverConfiguration [-VMNetworkAdapter] <VMNetworkAdapterBase> [-ClearFailoverIPv4Settings] [-ClearFailoverIPv6Settings] [-IPv4Address <String>] [-IPv4AlternateDNSServer <String>] [-IPv4DefaultGateway <String>] [-IPv4PreferredDNSServer <String>] [-IPv4SubnetMask <String>] [-IPv6Address <String>] [-IPv6AlternateDNSServer <String>] [-IPv6DefaultGateway <String>] [-IPv6PreferredDNSServer <String>] [-IPv6SubnetPrefixLength <Int32>] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Set-VMNetworkAdapterFailoverConfiguration cmdlet sets the configuration of an IP address of a virtual network adapter to be used when a virtual machine fails over.

Parameters

-ClearFailoverIPv4Settings [<SwitchParameter>]

Clears the configured IPv4 failover settings. The IPv4 address configured in the primary virtual machine (static or dynamic) will be used by the Replica virtual machine.

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

-ClearFailoverIPv6Settings [<SwitchParameter>]

Clears the configured IPv6 failover settings. The IPv6 address configured in the primary virtual machine (static or dynamic) will be used by the Replica virtual machine.

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 IP address configuration of a virtual network adapter is to be set. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer