Edit

Share via


Set-MSDSMGlobalDefaultLoadBalancePolicy

Sets the default load balance policy for MPIO devices.

Syntax

Default (Default)

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.

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.

Parameter properties

Type:String
Default value:None
Accepted values:None, FOO, RR, LQD, LB
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String