Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
# confirm the feature is enabled or not (enabled by default)
PS C:\Users\Administrator> Get-SmbServerConfiguration | Out-String -Stream | Select-String "EnableMultiChannel"
EnableMultiChannel : True
# if disabled, enable like follows
PS C:\Users\Administrator> Set-SmbServerConfiguration -EnableMultiChannel $True
# confirm network interfaces
PS C:\Users\Administrator> Get-SmbServerNetworkInterface
Scope Name Interface Index RSS Capable RDMA Capable Speed IpAddress
---------- --------------- ----------- ------------ ----- ---------
* 10 True False 1 Gbps fe80::282a:1adf:c3ea:7b8c
* 4 True False 1 Gbps fe80::3079:1726:4583:10c5
* 10 True False 1 Gbps 10.0.0.111
* 4 True False 1 Gbps 10.0.0.101
# set Multi Channel
# -ServerName : (hostname)
# -InterfaceIndex : (network interface to be used)
PS C:\Users\Administrator> New-SmbMultichannelConstraint -ServerName "rx-7" -InterfaceIndex 4, 10 -Force
# confirm settings
PS C:\Users\Administrator> Get-SmbMultichannelConstraint
InterfaceAlias : Ethernet0
InterfaceGuid : {4f66ee03-2f54-4332-b929-f8c9ee9155aa}
InterfaceIndex : 4
ServerName : rx-7
PSComputerName :
InterfaceAlias : Ethernet1
InterfaceGuid : {f3557ef5-cbde-4748-9894-c1ee4738e732}
InterfaceIndex : 10
ServerName : rx-7
PSComputerName :
# if remove settings, configure like follows
PS C:\Users\Administrator> Remove-SmbMultichannelConstraint -ServerName "rx-7"
Confirm
Are you sure you want to perform this action?
Performing operation 'Remove-SmbMultiChannelConstraint' on Target 'rx-7,{4f66ee03-2f54-4332-b929-f8c9ee9155aa}'.
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
Confirm
Are you sure you want to perform this action?
Performing operation 'Remove-SmbMultiChannelConstraint' on Target 'rx-7,{f3557ef5-cbde-4748-9894-c1ee4738e732}'.
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
|