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

Synopsis

Tests connectivity between virtual machines.

Syntax

Test-VMNetworkAdapter [-VMName] <String> [-ComputerName <String[]>] [-IsolationId <Int32>] [-Name <String>] [-NextHopMacAddress <String>] [-Passthru] [-Receiver] [-Sender] [-VMNetworkAdapterName <String>] -ReceiverIPAddress <String> -SenderIPAddress <String> -SequenceNumber <Int32> [-Confirm] [-WhatIf] [<CommonParameters>]

Test-VMNetworkAdapter [-ComputerName <String[]>] [-IsolationId <Int32>] [-Name <String>] [-NextHopMacAddress <String>] [-Passthru] [-VMNetworkAdapterName <String>] -ManagementOS -ReceiverIPAddress <String> -SenderIPAddress <String> -SequenceNumber <Int32> [-Confirm] [-WhatIf] [<CommonParameters>]

Test-VMNetworkAdapter [-VM] <VirtualMachine> [-IsolationId <Int32>] [-Name <String>] [-NextHopMacAddress <String>] [-Passthru] [-Receiver] [-Sender] [-VMNetworkAdapterName <String>] -ReceiverIPAddress <String> -SenderIPAddress <String> -SequenceNumber <Int32> [-Confirm] [-WhatIf] [<CommonParameters>]

Test-VMNetworkAdapter [-VMNetworkAdapter] <VMNetworkAdapterBase> [-IsolationId <Int32>] [-NextHopMacAddress <String>] [-Passthru] [-Receiver] [-Sender] -ReceiverIPAddress <String> -SenderIPAddress <String> -SequenceNumber <Int32> [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Test-VMNetworkAdapter cmdlet tests connectivity between virtual machines by using Internet Control Message Protocol (ICMP) Ping packets. Ping verifies IP-level connectivity to another TCP/IP computer by sending ICMP Echo Request messages.

Parameters

-ComputerName [<String[]>]

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

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

-IsolationId [<Int32>]

Specifies an ID of a virtual subnet.

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.

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

-Name [<String>]

Specifies the name of the virtual machine.

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

-NextHopMacAddress [<String>]

Specified the MAC address for the next hop VM required for non-HNV (non Hyper-V Network Virtualization) configurations.

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

-Receiver [<SwitchParameter>]

Indicates that the cmdlet targets the receiver virtual machine.

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

-ReceiverIPAddress [<String>]

Specifies the IP address of the receiver virtual machine.

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

-Sender [<SwitchParameter>]

Indicates that the cmdlet targets the sender virtual machine.

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

-SenderIPAddress [<String>]

Specifies the IP address of the sender virtual machine.

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

-SequenceNumber [<Int32>]

Specifies the sequence number to use to generate ICMP Ping packets. The default value is 100.

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

-VM [<VirtualMachine>]

Specifies a virtual machine. The cmdlet tests connectivity 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

-VMName [<String>]

Specifies the name of a virtual machine.

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

-VMNetworkAdapter [<VMNetworkAdapterBase>]

Specifies a virtual machine network adapter as a VMNetworkAdapterBase object. The cmdlet tests connectivity 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 tests connectivity 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

Return Type

Notes

Examples

Example 1: Test connectivity

PS> PS C:\>Test-VMNetworkAdapter