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

Synopsis

Configures a virtual switch.

Syntax

Set-VMSwitch [-Name] <String[]> [-AllowManagementOS <Boolean>] [-ComputerName <String[]>] [-DefaultFlowMinimumBandwidthAbsolute <Int64>] [-DefaultFlowMinimumBandwidthWeight <Int64>] [-Extensions <VMSwitchExtension[]>] [-Notes <String>] [-Passthru] [-SwitchType <VMSwitchType>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMSwitch [-VMSwitch] <VMSwitch[]> [-AllowManagementOS <Boolean>] [-ComputerName <String[]>] [-DefaultFlowMinimumBandwidthAbsolute <Int64>] [-DefaultFlowMinimumBandwidthWeight <Int64>] [-Extensions <VMSwitchExtension[]>] [-Notes <String>] [-Passthru] [-SwitchType <VMSwitchType>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMSwitch [-VMSwitch] <VMSwitch[]> [-NetAdapterInterfaceDescription] <String> [-AllowManagementOS <Boolean>] [-ComputerName <String[]>] [-DefaultFlowMinimumBandwidthAbsolute <Int64>] [-DefaultFlowMinimumBandwidthWeight <Int64>] [-Extensions <VMSwitchExtension[]>] [-Notes <String>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMSwitch [-VMSwitch] <VMSwitch[]> [-NetAdapterName] <String> [-AllowManagementOS <Boolean>] [-ComputerName <String[]>] [-DefaultFlowMinimumBandwidthAbsolute <Int64>] [-DefaultFlowMinimumBandwidthWeight <Int64>] [-Extensions <VMSwitchExtension[]>] [-Notes <String>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMSwitch [-Name] <String[]> [-NetAdapterInterfaceDescription] <String> [-AllowManagementOS <Boolean>] [-ComputerName <String[]>] [-DefaultFlowMinimumBandwidthAbsolute <Int64>] [-DefaultFlowMinimumBandwidthWeight <Int64>] [-Extensions <VMSwitchExtension[]>] [-Notes <String>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMSwitch [-Name] <String[]> [-NetAdapterName] <String> [-AllowManagementOS <Boolean>] [-ComputerName <String[]>] [-DefaultFlowMinimumBandwidthAbsolute <Int64>] [-DefaultFlowMinimumBandwidthWeight <Int64>] [-Extensions <VMSwitchExtension[]>] [-Notes <String>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Set-VMSwitch cmdlet configures a virtual switch.

Parameters

-AllowManagementOS [<Boolean>]

Specifies whether the management operating system can use the physical network adapter that is bound to the external virtual switch.

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

Synopsis

Configures a host as a Replica server.

Syntax

Set-VMReplicationServer [[-ReplicationEnabled] <Boolean>] [[-AllowedAuthenticationType] <RecoveryAuthenticationType>] [[-ReplicationAllowedFromAnyServer] <Boolean>] [-CertificateAuthenticationPort <Int32>] [-CertificateThumbprint <String>] [-ComputerName <String[]>] [-DefaultStorageLocation <String>] [-Force] [-KerberosAuthenticationPort <Int32>] [-MonitoringInterval <TimeSpan>] [-MonitoringStartTime <TimeSpan>] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMReplicationServer [[-ReplicationEnabled] <Boolean>] [[-AllowedAuthenticationType] <RecoveryAuthenticationType>] [[-ReplicationAllowedFromAnyServer] <Boolean>] [-CertificateAuthenticationPortMapping <Hashtable>] [-CertificateThumbprint <String>] [-ComputerName <String[]>] [-DefaultStorageLocation <String>] [-Force] [-KerberosAuthenticationPortMapping <Hashtable>] [-MonitoringInterval <TimeSpan>] [-MonitoringStartTime <TimeSpan>] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Set-VMReplicationServer cmdlet configures a host as a Replica server and enables you to specify the types of authentication and ports to use for incoming replication traffic. To restrict the replication traffic that the Replica server will accept by allowing it only from specific servers, use the New-VMReplicationAuthorizationEntry cmdlet.

Parameters

-AllowedAuthenticationType [<RecoveryAuthenticationType>]

Specifies which authentication types the Replica server will use. Allowed values are Kerberos, Certificate, or CertificateAndKerberos.

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

-CertificateAuthenticationPort [<Int32>]

Specifies the port on which the Replica server will receive replication data using certificate-based authentication. This parameter can be set only when the value of the AllowedAuthType parameter is Certificate or CertificateAndKerberos.

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

-CertificateAuthenticationPortMapping [<Hashtable>]

When using Hyper-V Replica with failover clustering and certificate-based authorization, you can use this parameter to specify a different port for each node of the cluster to receive replication. We recommend that you specify a unique port for each node of the cluster, and one unique port for the Hyper-V Replica Broker. This parameter can be set only when the Replica server is configured with an authentication type of Certificate or CertificateAndKerberos.

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

-CertificateThumbprint [<String>]

Specifies the certificate to use for mutual authentication of the replication data. This parameter is required only when Certificate is specified as the type of authentication. Specify the thumbprint of a valid computer certificate from the Personal store.

The certificate must have all of the following properties to be valid:

--It must not be expired.

--It must include both client and server authentication extensions for extended key usage (EKU), and an associated private key.

--It must terminate at a valid root certificate.

--It must meet the requirements for the subject common name (CN):

-- For servers that are not clustered, the subject common name (CN) must be equal to, or subject alternative name (DNS Name) should contain, the FQDN of the host.

-- For servers that are clustered, each node must have two certificates

Synopsis

Modifies the replication settings of a virtual machine.

Syntax

Set-VMReplication [-VMName] <String[]> [[-ReplicaServerName] <String>] [[-ReplicaServerPort] <Int32>] [[-AuthenticationType] <ReplicationAuthenticationType>] [-AllowedPrimaryServer <String>] [-AsJob] [-AsReplica] [-AutoResynchronizeEnabled <Boolean>] [-AutoResynchronizeIntervalEnd <TimeSpan>] [-AutoResynchronizeIntervalStart <TimeSpan>] [-BypassProxyServer <Boolean>] [-CertificateThumbprint <String>] [-CompressionEnabled <Boolean>] [-ComputerName <String[]>] [-DisableVSSSnapshotReplication] [-EnableWriteOrderPreservationAcrossDisks <Boolean>] [-InitialReplicationStartTime <DateTime>] [-PassThru] [-RecoveryHistory <Int32>] [-ReplicateHostKvpItems <Boolean>] [-ReplicationFrequencySec <Int32>] [-Reverse] [-UseBackup] [-VSSSnapshotFrequencyHour <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMReplication [-VM] <VirtualMachine[]> [[-ReplicaServerName] <String>] [[-ReplicaServerPort] <Int32>] [[-AuthenticationType] <ReplicationAuthenticationType>] [-AllowedPrimaryServer <String>] [-AsJob] [-AsReplica] [-AutoResynchronizeEnabled <Boolean>] [-AutoResynchronizeIntervalEnd <TimeSpan>] [-AutoResynchronizeIntervalStart <TimeSpan>] [-BypassProxyServer <Boolean>] [-CertificateThumbprint <String>] [-CompressionEnabled <Boolean>] [-DisableVSSSnapshotReplication] [-EnableWriteOrderPreservationAcrossDisks <Boolean>] [-InitialReplicationStartTime <DateTime>] [-PassThru] [-RecoveryHistory <Int32>] [-ReplicateHostKvpItems <Boolean>] [-ReplicationFrequencySec <Int32>] [-Reverse] [-UseBackup] [-VSSSnapshotFrequencyHour <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-VMReplication [-VMReplication] <VMReplication[]> [[-ReplicaServerName] <String>] [[-ReplicaServerPort] <Int32>] [[-AuthenticationType] <ReplicationAuthenticationType>] [-AllowedPrimaryServer <String>] [-AsJob] [-AsReplica] [-AutoResynchronizeEnabled <Boolean>] [-AutoResynchronizeIntervalEnd <TimeSpan>] [-AutoResynchronizeIntervalStart <TimeSpan>] [-BypassProxyServer <Boolean>] [-CertificateThumbprint <String>] [-CompressionEnabled <Boolean>] [-DisableVSSSnapshotReplication] [-EnableWriteOrderPreservationAcrossDisks <Boolean>] [-InitialReplicationStartTime <DateTime>] [-PassThru] [-RecoveryHistory <Int32>] [-ReplicateHostKvpItems <Boolean>] [-ReplicationFrequencySec <Int32>] [-Reverse] [-UseBackup] [-VSSSnapshotFrequencyHour <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Set-VMReplication cmdlet modifies the replication settings of a virtual machine.

Parameters

-AsJob [<SwitchParameter>]

Runs the cmdlet as a background job.

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

-AuthenticationType [<ReplicationAuthenticationType>]

Specifies the authentication type to use for virtual machine replication, either

Synopsis

Sets the parent resource pool for a selected resource pool.

Syntax

Set-VMResourcePool [-Name] <String[]> [-ResourcePoolType] <VMResourcePoolType> [-ParentName] <String[]> [-ComputerName <String[]>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Set-VMResourcePool cmdlet sets a parent resource pool for a selected resource pool. (To remove a parent from a resource pool, set the primordial pool of the resource pool

Synopsis

Modifies an authorization entry on a Replica server.

Syntax

Set-VMReplicationAuthorizationEntry [-AllowedPrimaryServer] <String> [[-ReplicaStorageLocation] <String>] [[-TrustGroup] <String>] [-ComputerName <String[]>] [-PassThru] [<CommonParameters>]

Set-VMReplicationAuthorizationEntry [-VMReplicationAuthorizationEntry] <VMReplicationAuthorizationEntry[]> [[-ReplicaStorageLocation] <String>] [[-TrustGroup] <String>] [-PassThru] [<CommonParameters>]

Detailed Description

The Set-VMReplicationAuthorizationEntry cmdlet modifies an authorization entry on Replica server.

Parameters

-AllowedPrimaryServer [<String>]

Specifies the allowed primary server of the authorization entry to be modified.

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

-ComputerName [<String[]>]

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