PowerShell Logo Small

Set-SmbServerConfiguration



This is the built-in help made by Microsoft for the command 'Set-SmbServerConfiguration', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Sets the Server Message Block (SMB) server configuration.

SYNTAX


Set-SmbServerConfiguration [-AnnounceComment <String>] [-AnnounceServer <Boolean>] [-AsJob] [-AsynchronousCredits <UInt32>] [-AutoDisconnectTimeout <UInt32>]
[-AutoShareServer <Boolean>] [-AutoShareWorkstation <Boolean>] [-CachedOpenLimit <UInt32>] [-CimSession <CimSession[]>] [-DurableHandleV2TimeoutInSeconds <UInt32>]
[-EnableAuthenticateUserSharing <Boolean>] [-EnableDownlevelTimewarp <Boolean>] [-EnableForcedLogoff <Boolean>] [-EnableLeasing <Boolean>] [-EnableMultiChannel <Boolean>]
[-EnableOplocks <Boolean>] [-EnableSecuritySignature <Boolean>] [-EnableSMB1Protocol <Boolean>] [-EnableSMB2Protocol <Boolean>] [-EnableStrictNameChecking <Boolean>]
[-EncryptData <Boolean>] [-Force] [-IrpStackSize <UInt32>] [-KeepAliveTime <UInt32>] [-MaxChannelPerSession <UInt32>] [-MaxMpxCount <UInt32>] [-MaxSessionPerConnection
<UInt32>] [-MaxThreadsPerQueue <UInt32>] [-MaxWorkItems <UInt32>] [-NullSessionPipes <String>] [-NullSessionShares <String>] [-OplockBreakWait <UInt32>]
[-PendingClientTimeoutInSeconds <UInt32>] [-RejectUnencryptedAccess <Boolean>] [-RequireSecuritySignature <Boolean>] [-ServerHidden <Boolean>] [-Smb2CreditsMax <UInt32>]
[-Smb2CreditsMin <UInt32>] [-SmbServerNameHardeningLevel <UInt32>] [-ThrottleLimit <Int32>] [-TreatHostAsStableStorage <Boolean>] [-ValidateAliasNotCircular <Boolean>]
[-ValidateShareScope <Boolean>] [-ValidateShareScopeNotAliased <Boolean>] [-ValidateTargetName <Boolean>] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-SmbServerConfiguration cmdlet sets the Server Message Block (SMB) server configuration.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=289792
Get-SmbServerConfiguration

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Set-SmbServerConfiguration -MaxChannelPerSession 16
Confirm
Are you sure you want to perform this action?
Performing operation 'Modify' on Target 'SMB Server Configuration'.
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):



This example sets the SMB server configuration.




EXAMPLE 2

PS C:\>Set-SmbServerConfiguration -MaxChannelPerSession 32 -Force



This example sets the SMB server configuration without user confirmation.