Set SmbClientConfiguration - PowerShell


Set-SmbClientConfiguration configures the SMB client behavior on the local computer. It allows you to manage settings related to SMB protocol versions, security options, and performance optimizations. By customizing these settings, you can improve the interoperability and performance of SMB file sharing with remote servers.


Set-SmbClientConfiguration [-Name] <String> -Value <Object> [-ComputerName] <String> [-Force] [-Confirm] [-WhatIf] [-OutVariable] <Object>


  • -Name: Specifies the name of the configuration setting to modify. Possible values include:
    • Smb1ProtocolEnabled
    • Smb2ProtocolEnabled
    • Smb3ProtocolEnabled
    • SmbEncryptionEnabled
    • SmbSigningEnabled
    • SmbClientCachingEnabled
    • SmbShareCachingEnabled
  • -Value: Specifies the new value for the configuration setting. This can be either a boolean value (true/false) or an integer.
  • -ComputerName: Specifies the computer on which to configure the SMB client. By default, the local computer is targeted.
  • -Force: Overwrites any existing value of the configuration setting without prompting for confirmation.
  • -Confirm: Prompts the user to confirm the operation before executing it.
  • -WhatIf: Displays the changes that would be made without actually performing them.
  • -OutVariable: Assigns the result of the command to a variable.


Example 1: Enable SMB3 protocol and disable SMB1 protocol

Set-SmbClientConfiguration -Name Smb1ProtocolEnabled -Value False -Name Smb3ProtocolEnabled -Value True

Example 2: Disable SMB signing and enable SMB encryption

Set-SmbClientConfiguration -Name SmbSigningEnabled -Value False -Name SmbEncryptionEnabled -Value True

Example 3: Disable SMB client caching

Set-SmbClientConfiguration -Name SmbClientCachingEnabled -Value False

Common Issues

  • Error: “Set-SmbClientConfiguration: Not Supported”
    This error occurs when trying to modify the SMB1 protocol settings on a Windows Server 2012 R2 or later system. SMB1 support is disabled by default on these systems and cannot be re-enabled.
  • SMB File Sharing Problems
    If you experience issues accessing shared files after modifying SMB client settings, try restarting the “SMB Client” service on the client and server computers.


Set-SmbClientConfiguration can be combined with other commands to manage SMB client behavior more effectively:

  • Get-SmbClientConfiguration: Retrieves the current SMB client configuration settings.
  • New-NetFirewallRule: Creates a firewall rule to allow SMB traffic through the Windows Firewall.
  • Test-NetConnection: Tests network connectivity to an SMB server.
  • Set-SmbServerConfiguration
  • Enable-Smb1Protocol
  • Disable-Smb1Protocol