< Back

Set-SmbClientConfiguration

Wed Jan 30, 2019 6:00 pm

NAME Set-SmbClientConfiguration



SYNOPSIS

Sets the SMB client configuration.





SYNTAX

Set-SmbClientConfiguration [-CimSession <CimSession[]>] [-ConnectionCountPerRssNetworkInterface <UInt32>] [-DirectoryCacheEntriesMax <UInt32>]

[-DirectoryCacheEntrySizeMax <UInt32>] [-DirectoryCacheLifetime <UInt32>] [-DormantFileLimit <UInt32>] [-EnableBandwidthThrottling <Boolean>]

[-EnableByteRangeLockingOnReadOnlyFiles <Boolean>] [-EnableLargeMtu <Boolean>] [-EnableLoadBalanceScaleOut <System.Boolean>] [-EnableMultiChannel

<Boolean>] [-EnableSecuritySignature <Boolean>] [-ExtendedSessionTimeout <UInt32>] [-FileInfoCacheEntriesMax <UInt32>] [-FileInfoCacheLifetime <UInt32>]

[-FileNotFoundCacheEntriesMax <UInt32>] [-FileNotFoundCacheLifetime <UInt32>] [-Force] [-KeepConn <UInt32>] [-MaxCmds <UInt32>]

[-MaximumConnectionCountPerServer <UInt32>] [-OplocksDisabled <Boolean>] [-RequireSecuritySignature <Boolean>] [-SessionTimeout <UInt32>]

[-ThrottleLimit <Int32>] [-UseOpportunisticLocking <Boolean>] [-WindowSizeThreshold <UInt32>] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Set-SmbClientConfiguration cmdlet sets the Server Message Block (SMB) client configuration.





PARAMETERS

-CimSession [<CimSession[]>]

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or

Get-CimSession cmdlet. The default is the current session on the local computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-ConnectionCountPerRssNetworkInterface [<UInt32>]

Specifies the SMB connection count per each RSS network interface.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-DirectoryCacheEntriesMax [<UInt32>]

Specifies the maximum cache entries that can be in the directory cache.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-DirectoryCacheEntrySizeMax [<UInt32>]

Specifies the maximum size of directory cache entry.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-DirectoryCacheLifetime [<UInt32>]

Specifies the directory cache lifetime.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-DormantFileLimit [<UInt32>]

Specifies the dormant file limit.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-EnableBandwidthThrottling [<Boolean>]

Indicates that bandwidth throttling is enabled.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-EnableByteRangeLockingOnReadOnlyFiles [<Boolean>]

Indicates that byte range locking on read-only files is enabled.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-EnableLargeMtu [<Boolean>]

Indicates that large MTU is enabled.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-EnableLoadBalanceScaleOut [<System.Boolean>]

Indicates whether load balance scale out is enabled.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-EnableMultiChannel [<Boolean>]

Indicates that multi-channel is enabled.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-EnableSecuritySignature [<Boolean>]

Indicates that the security signature is enabled.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-ExtendedSessionTimeout [<UInt32>]

Specifies the extended session time-out.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-FileInfoCacheEntriesMax [<UInt32>]

Specifies the maximum number entries that can be in the file information cache.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-FileInfoCacheLifetime [<UInt32>]

Specifies the file information cache lifetime.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-FileNotFoundCacheEntriesMax [<UInt32>]

Specifies the maximum number entries that can be in the file not found cache.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-FileNotFoundCacheLifetime [<UInt32>]

Specifies the file not found cache lifetime.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-Force [<SwitchParameter>]

Forces the command to run without asking for user confirmation.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-KeepConn [<UInt32>]

Specifies the time, in seconds, before the SMB client session is automatically disconnected.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-MaxCmds [<UInt32>]

Specifies the maximum number of concurrent outstanding network requests that the SMB client supports.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-MaximumConnectionCountPerServer [<UInt32>]

Specifies the maximum connection count per server.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-OplocksDisabled [<Boolean>]

Indicates that opportunistic locks are disabled.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-RequireSecuritySignature [<Boolean>]

Indicates that the security signature is required.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-SessionTimeout [<UInt32>]

Specifies the session time-out.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-ThrottleLimit [<Int32>]

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is

entered, then Windows PowerShell???? calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the

computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-UseOpportunisticLocking [<Boolean>]

Indicates that opportunistic locks are used.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-WindowSizeThreshold [<UInt32>]

Specifies the window size threshold.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.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.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



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None









OUTPUTS

None









Example 1: Set the SMB client configuration



PS C:\\>Set-SmbClientConfiguration -ConnectionCountPerRssNetworkInterface 8

Confirm

Are you sure you want to perform this action?

Performing operation 'Modify' on Target 'SMB Client Configuration'.

[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):



This command sets the SMB client configuration.





Example 2: Set the SMB client configuration without confirmation



PS C:\\>Set-SmbClientConfiguration -ConnectionCountPerRssNetworkInterface 4 -Force



This command sets the SMB client configuration without user confirmation.







RELATED LINKS

Get-SmbClientConfiguration