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

Synopsis

Tests the connection between a primary server and a Replica server.

Syntax

Test-VMReplicationConnection [-ReplicaServerName] <String> [-ReplicaServerPort] <Int32> [-AuthenticationType] <ReplicationAuthenticationType> [[-CertificateThumbprint] <String>] [-BypassProxyServer <Boolean>] [-ComputerName <String[]>] [<CommonParameters>]

Detailed Description

The Test-VMReplicationConnection cmdlet tests the connection between a primary server and a Replica server to determine whether replication can be enabled for virtual machines on the primary server to the specified Replica server.

Parameters

-AuthenticationType [<ReplicationAuthenticationType>]

Specifies the authentication type to use to test the connection, either

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

Synopsis

Suspends replication of a virtual machine.

Syntax

Suspend-VMReplication [-VMName] <String[]> [-ComputerName <String[]>] [-PassThru] [-ReplicationRelationshipType <VMReplicationRelationshipType>] [-Confirm] [-WhatIf] [<CommonParameters>]

Suspend-VMReplication [-VM] <VirtualMachine[]> [-PassThru] [-ReplicationRelationshipType <VMReplicationRelationshipType>] [-Confirm] [-WhatIf] [<CommonParameters>]

Suspend-VMReplication [-VMReplication] <VMReplication[]> [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Suspend-VMReplication cmdlet suspends, or pauses, replication of a virtual machine. To resume replication, use the Resume-VMReplication cmdlet to resume replication. When replication is resumed, all changes made since replication was suspended will be replicated.

Parameters

-ComputerName [<String[]>]

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

Synopsis

Tests a virtual hard disk for any problems that would make it unusable.

Syntax

Test-VHD [-Path] <String[]> [-ComputerName <String[]>] [<CommonParameters>]

Test-VHD [-Path] <String[]> [-ComputerName <String[]>] -SupportPersistentReservations [<CommonParameters>]

Detailed Description

The Test-VHD cmdlet tests a virtual hard disk for any problems that would make it unusable.

Parameters

-ComputerName [<String[]>]

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

Synopsis

Suspends, or pauses, a virtual machine.

Syntax

Suspend-VM [-Name] <String[]> [-AsJob] [-ComputerName <String[]>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]

Suspend-VM [-VM] <VirtualMachine[]> [-AsJob] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Suspend-VM cmdlet suspends a virtual machine. To return a suspended virtual machine to a running state, use the Resume-VM cmdlet.

Parameters

-AsJob [<SwitchParameter>]

Specifies that the cmdlet is to be run as a background job.

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 a virtual machine is to be suspended. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer