Windows PowerShell command on Get-command Set-SmbServerConfiguration
MyWebUniversity

Windows PowerShell command on Get-command Set-SmbServerConfiguration

NAME

Set-SmbServerConfiguration

SYNOPSIS

Sets the SMB Service configuration.

SYNTAX

Set-SmbServerConfiguration [-AnnounceComment ] [-AnnounceServer ] [-AsynchronousCredits ]

[-AutoDisconnectTimeout ] [-AutoShareServer ] [-AutoShareWorkstation ] [-CachedOpenLimit

] [-CimSession ] [-DurableHandleV2TimeoutInSeconds ] [-EnableAuthenticateUserSharing

] [-EnableDownlevelTimewarp ] [-EnableForcedLogoff ] [-EnableLeasing ]

[-EnableMultiChannel ] [-EnableOplocks ] [-EnableSecuritySignature ]

[-EnableSMB1Protocol ] [-EnableSMB2Protocol ] [-EnableStrictNameChecking ]

[-EncryptData ] [-Force] [-IrpStackSize ] [-KeepAliveTime ] [-MaxChannelPerSession

] [-MaxMpxCount ] [-MaxSessionPerConnection ] [-MaxThreadsPerQueue ]

[-MaxWorkItems ] [-NullSessionPipes ] [-NullSessionShares ] [-OplockBreakWait ]

[-PendingClientTimeoutInSeconds ] [-RejectUnencryptedAccess ] [-RequireSecuritySignature

] [-ServerHidden ] [-Smb2CreditsMax ] [-Smb2CreditsMin ]

[-SmbServerNameHardeningLevel ] [-ThrottleLimit ] [-TreatHostAsStableStorage ]

[-ValidateAliasNotCircular ] [-ValidateShareScope ] [-ValidateShareScopeNotAliased ]

[-ValidateTargetName ] [-Confirm] [-WhatIf] []

DESCRIPTION

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

PARAMETERS

-AnnounceComment []

Specifies the announce comment string. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-AnnounceServer []

Indicates that this server announces itself by using browser announcements. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-AsynchronousCredits []

Specifies the asynchronous credits. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-AutoDisconnectTimeout []

Specifies the auto disconnect time-out.

Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-AutoShareServer []

Indicates that the default server shares are shared out. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-AutoShareWorkstation []

Indicates whether the default workstation shares are shared out. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-CachedOpenLimit []

Specifies the maximum number of cached open files. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-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

-DurableHandleV2TimeoutInSeconds []

Specifies the durable handle v2 time-out period, in seconds.

Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-EnableAuthenticateUserSharing []

Indicates whether authenticate user sharing is enabled. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-EnableDownlevelTimewarp []

Indicates whether down-level timewarp support is disabled.

Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-EnableForcedLogoff []

Indicates whether forced logoff is enabled. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-EnableLeasing []

Indicates whether leasing is disabled. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-EnableMultiChannel []

Indicates whether multi-channel is disabled.

Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-EnableOplocks []

Indicates whether the opportunistic locks are enabled. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-EnableSecuritySignature []

Indicates whether the security signature is enabled. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-EnableSMB1Protocol []

Indicates whether the SMB1 protocol is enabled. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-EnableSMB2Protocol []

Indicates whether the SMB2 protocol is enabled. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-EnableStrictNameChecking []

Indicates whether the server should perform strict name checking on incoming connects. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-EncryptData []

Indicates whether the sessions established on this server are encrypted. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-Force []

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

-IrpStackSize []

Specifies the default IRP stack size. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-KeepAliveTime []

Specifies the keep alive time. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-MaxChannelPerSession []

Specifies the maximum channels per session. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-MaxMpxCount []

Specifies the maximum MPX count for SMB1. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-MaxSessionPerConnection []

Specifies the maximum sessions per connection. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-MaxThreadsPerQueue []

Specifies the maximum threads per queue. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-MaxWorkItems []

Specifies the maximum SMB1 work items. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-NullSessionPipes []

Specifies the null session pipes. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-NullSessionShares []

Specifies the null session shares. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-OplockBreakWait []

Specifies how long the create caller waits for an opportunistic lock break. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-PendingClientTimeoutInSeconds []

Specifies the pending client time-out period, in seconds.

Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-RejectUnencryptedAccess []

Indicates whether the client that does not support encryption is denied access if it attempts to connect to an encrypted share. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-RequireSecuritySignature []

Indicates whether the security signature is required. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-ServerHidden []

Indicates whether the server announces itself. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-Smb2CreditsMax []

Specifies the maximum SMB2 credits. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-Smb2CreditsMin []

Specifies the minimum SMB2 credits. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-SmbServerNameHardeningLevel []

Specifies the SMB Service name hardening level. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-ThrottleLimit []

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 PowerShellr 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

-TreatHostAsStableStorage []

Indicates whether the host is treated as the stable storage. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-ValidateAliasNotCircular []

Indicates whether the aliases that are not circular are validated. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-ValidateShareScope []

Indicates that the existence of share scopes is checked during share creation. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-ValidateShareScopeNotAliased []

Indicates whether the share scope being aliased is validated. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-ValidateTargetName []

Indicates whether the target name is validated. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-Confirm []

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 []

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 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 Service configuration

PS C:\>Set-SmbServerConfiguration -MaxChannelPerSession 16

Confirm Are you sure you want to perform this action? Performing operation 'Modify' on Target 'SMB Service Configuration'. [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): This command sets the SMB Service configuration.

Example 2: Set the SMB Service configuration without confirmation

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

This command sets the SMB Service configuration without user confirmation.

RELATED LINKS

Get-SmbServerConfiguration



Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 OurUNIX.com ™