Set-MSDSMGlobalDefaultLoadBalancePolicy

Sets the default load balance policy for MPIO devices.

Syntax

Set-MSDSMGlobalDefaultLoadBalancePolicy
   [-Policy] <String>
   [<CommonParameters>]

Description

The Set-MSDSMGlobalDefaultLoadBalancePolicy cmdlet sets the default load balance policy for Microsoft Multipath I/O (MPIO) devices. Microsoft Device Specific Module (MSDSM) applies this policy only to devices that it claims after you set the policy.

Use the Get-MSDSMGlobalDefaultLoadBalancePolicy cmdlet to see the current default policy.

Examples

Example 1: Set round robin as default policy

PS C:\> Set-MSDSMGlobalLoadBalancePolicy -Policy RR

This command sets the default load balance policy to round robin.

Example 2: Clear default policy

PS C:\> Set-MSDSMGlobalLoadBalancePolicy -Policy None

This command clears any current configured default load balance policy.

Required Parameters

-Policy

Specifies a default value for load balance policy. The acceptable values for this parameter are:

  • None. Clears any currently configured default load balance policy.
  • FOO. Fail Over Only.
  • RR. Round Robin.
  • LQD. Least Queue Depth.
  • LB. Least Blocks.
Type:String
Parameter Sets:None, FOO, RR, LQD, LB
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.String