Microsoft Smb Domain Server Mac
Learning has never been so easy!

It's a common complaint that in recent versions of Mac OS 10.x, browsing Windows-hosted SMB shares is incredibly slow. Not every solution works, but here are 3 simple fixes that completely solved the issue for me (Using Windows Server 2012 & 2012R2 with Mac OS X 10.9 & 10.10).

3 Steps total

Step 1: Disable writing .DS_Store files to network shares

Dec 25, 2019  How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows.; 8 minutes to read; In this article Summary. This article describes how to enable and disable Server Message Block (SMB) version 1 (SMBv1), SMB version 2 (SMBv2), and SMB version 3 (SMBv3) on the SMB client and server components. SMB 3.0 was introduced in Windows Server 2012 and further enhanced in Windows Server 2012 R2 (SMB 3.02) and Windows Server 2016 (SMB 3.1.1). This version introduced technologies that may significantly improve performance and availability of the file server. For more info, see SMB in Windows Server 2012 and 2012 R2 2012 and What's new in SMB 3.1.1.

On the Mac, open up Terminal and enter the following command:

Microsoft SQL Server over SMB. SQL Server can store user database files on SMB file shares. Currently, this is supported with SQL Server 2008 R2 for stand-alone SQL servers. Upcoming versions of SQL Server will add support for clustered SQL servers and system databases. Traditional storage for end-user data. The SMB 3.0 protocol provides. Server Message Block provides file sharing, network browsing, printing services, and interprocess communication over a network. The SMB protocol relies on lower-level protocols for transport. The Microsoft SMB protocol was often used with NetBIOS over TCP/IP (NBT) over UDP, using port numbers 137 and 138, and TCP port numbers 137 and 139. Mar 13, 2015  If you're already using IP try the hostname and include the username and share name in there when you attempt to connect - SMB://DOMAIN;User@servername/sharename - if you have spaces in the share name, get rid of them. Also verify that ports 137, 138, 139 and 445 (used by SMB) are not blocked on mac or pc. Apr 20, 2017 This requires the use of Microsoft’s file-sharing protocol, Server Message Block (SMB), which presents significant compatibility issues in mixed Mac/Windows environments. Apple has its own protocol for network file sharing – Apple Filing Protocol (AFP) – but most NAS devices and Windows file servers natively communicate only via SMB.

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

Step 2: Make sure NetBIOS over TCP/IP is enabled on the file server's network adapter

Adapter Properties -> IPv4 properties -> Advanced -> WINS tab -> Enable NetBIOS over TCP/IP

Make sure this setting is enabled.

Step 3: Use Powershell to edit the server's SMB configuration.

On the Windows server, open Powershell as an administrator and run:

get-smbserverconfiguration

Look for the values for smb2creditsmin and smb2creditsmax. On my server, the defaults were 128 and 2048 respectively. To change these settings, run

set-smbserverconfiguration -smb2creditsmin 512 -smb2creditsmax 8192

and respond Y to the confirmation prompt.

Following these three steps instantly fixed the issue for me and others, and my Macs are now browsing the file shares just as fast as their Windows counterparts.

Published: Feb 10, 2015 · Last Updated: Feb 11, 2015

References

  • Relevant Spiceworks community discussion

15 Comments

  • Pimiento
    OSXuser Feb 18, 2015 at 09:35am

    Hey Chris, could you confirm that read and write speeds over SMB 3 on OSX 10.10 are the same as read and write speeds over SMB 3 on windows 8.1? Are you using 10gbe or 1gbe?

    We are using 10gbe and are seeing great read speeds (850MB/s) but not so great write speeds (400MB/s) even though our RAID can easily go up to 3,500MB/s.

    Thanks,

    Philipp

  • Poblano
    Chris1474 Feb 19, 2015 at 06:22pm

    Hi OSXUser, most (all?) RAID setups have inherently better read speeds compared to write speeds, and this has to do with the mechanics of RAID itself (see: http://www.raid-calculator.com/raid-types-reference.aspx). I suspect that if you benchmarked your Windows machines, you'd see a similar result to your Macs.

  • Pimiento
    OSXuser Feb 23, 2015 at 05:40pm

    Hi Chris,

    No the RAID actually gets 3,000 MB/s write. I can also hit it with multiple Macs each at 400MB/s write. The Windows server also has a PCI SSD with 2000MB/s read and write. The throttle seems to be on the LAN side.

    When connection one Mac Pro to another Mac Pro we get 800 MB/s read and write. But when connecting from Mac Pro to Windows Server the write is much slower than tge read.

    Any ideas?

  • Jalapeno
    Oscar3097 Mar 1, 2015 at 10:14pm

    This solved the issue for me too. However, if use Hamachi to access the file shares from another country, I have to wait 2 or 3 minutes for the folders to show up. Then when the folders do show up and I open another folder, I have to wait again for those folders to show up.
    However, using Hamachi from a windows computer, there is no wait time for folders to show up.
    Any resolution for this?

  • Poblano
    Chris1474 Mar 2, 2015 at 06:36am

    OSXUser, that's strange- but you're right, sounds like it's LAN stuff. And it sounds like you're not the only guy noticing this. I googled and found this- might have some ideas: https://social.technet.microsoft.com/forums/windowsserver/en-US/46898c7f-92e0-4c99-98d2-18a7458a7d2d/slow-network-write-speeds-via-smb-cifs

    Oscar3097, have you poked around to see if other Hamachi users have experienced the same issues? Sounds like a Hamachi issue to me.

  • Jalapeno
    Oscar3097 Mar 2, 2015 at 01:07pm

    Chris, I thought this was a Hamachi issue but I discarded that idea because I can browse without a problem from windows computers. I have this problem when browsing from macs in Argentina, Puerto Rico, Panama, Brazil Mexico but not if they use windows. I had the same problem in the local lan, but using your fix we can now browse fast from all macs in the office.

  • Pimiento
    kimcassidy Oct 16, 2015 at 07:41pm

    Hi Chris,

    I know this is an older thread but it is something I need to fix for two clients. I followed your excellent instructions and was successful for my Windows 2012 client, but when I run the set-smb.. on a Windows 2008 R2 it says it isn't a recognized cmdlet. Any help that you could give me would be greatly appreciated.

  • Poblano
    Chris1474 Dec 2, 2015 at 08:32pm

    Hi kimcassidy, just saw this now- sorry for the late reply. I know that the ability to manipulate SMB through PowerShell was added with Server 2012; I'm not sure if you can upgrade your version of PowerShell or import the SMB module into 2008. Others might have more experience with this..

  • Tabasco
    jai23155 Apr 18, 2016 at 09:34am

    I don't think this this is possible on Server 2008 R2. is it??

  • Pimiento
    markelliott5 Sep 25, 2016 at 04:29am

    I just made an account to praise you for writing this little article. It made my home theater set up go from struggling w/ 720p to streaming remux 1080p bluray with only occasional hiccups.

    It's still slower than I would think it would be given the pipes it's coming through, but at least it can handle the 2.77MB/s required to stream this big video.

  • Sonora
    Richard Poole Oct 18, 2016 at 12:34pm

    This seemed to do the trick here too.
    OSX users instantly noticing improved browse and file transfer speeds after applying the 3 steps above.

  • Anaheim
    blacklab3l Jan 11, 2017 at 03:09pm

    This worked for me..Took my searches from 3-5 minutes down to about 16 seconds. I'll take it!

    Jan 26, 2019  Drop down menus not working in Office for Mac 2016, neither in Word or in Excel. Just recently got MS Office for Mac 2016 (version 15 it says in About.) but none of the pull-down menus actually work so (for example) I can't change the font color in Word or put borders around a cell in Excel. Mac microsoft office no drop down. Nov 30, 2018  Mac office 2016 drop down menu not displaying. I have tried installing back over the top and there are no updates for the os or office available. I hope someone has seen this before? Thanks very much. Popular Topics in Microsoft Office.

  • Pimiento
    dylanevans May 22, 2017 at 08:59am

    This worked for me, but then it didnt :/

    I was trying out a direct connection between my MBP and consumer Win10 machine connected direct via thunderbolt.

    They connected up nice and easily, and when running a test of disk speed from the MBP (with Blackmagic disk speed test) the internal drives on the Win machine tested at their full speed for around 500MB/s.

    However, external drives did not work - I was getting write speeds of around 5MB/s

    I ran across this page and when I enabled NetBIOS over TCP/IP this seemed to fix the issue - external drives mounted on the Win side would test at their capacity of 320MB/s when testing from the MBP.

    However, I have connected again a couple of weeks later and the network speeds have dropped back down to 5-6MB/s.

    I cannot for the life of me fathom what has changed, everything is still enabled on the windows side, and crucially this is only for externally mounted drives. The internal drives on the Windows machine still test at their full speed.

    Do you have any ideas?

  • Poblano
    Sam Thackeray Dec 6, 2017 at 11:44am

    Hi,
    Any chance someone could provide some details on what each of these commands do.

    We are an office of some 100 users and i am hesitant to make changes to fix the issues for our 1 mac user if there is any negative effect for the 99 windows users.

    Thanks,

  • Sonora
    OnWireIT Jan 22, 2018 at 06:40pm

    Could someone confirm that this is still an issue with the newest Mac OSx?

-->

Applies to: Windows Server 2012 R2, Windows Server 2012, Windows Server 2016

This topic explains the SMB security enhancements in Windows Server 2012 R2, Windows Server 2012, and Windows Server 2016.

SMB Encryption

SMB Encryption provides end-to-end encryption of SMB data and protects data from eavesdropping occurrences on untrusted networks. You can deploy SMB Encryption with minimal effort, but it may require small additional costs for specialized hardware or software. It has no requirements for Internet Protocol security (IPsec) or WAN accelerators. SMB Encryption can be configured on a per share basis or for the entire file server, and it can be enabled for a variety of scenarios where data traverses untrusted networks.

Note

SMB Encryption does not cover security at rest, which is typically handled by BitLocker Drive Encryption.

SMB Encryption should be considered for any scenario in which sensitive data needs to be protected from man-in-the-middle attacks. Possible scenarios include:

  • An information worker's sensitive data is moved by using the SMB protocol. SMB Encryption offers an end-to-end privacy and integrity assurance between the file server and the client, regardless of the networks traversed, such as wide area network (WAN) connections that are maintained by non-Microsoft providers.
  • SMB 3.0 enables file servers to provide continuously available storage for server applications, such as SQL Server or Hyper-V. Enabling SMB Encryption provides an opportunity to protect that information from snooping attacks. SMB Encryption is simpler to use than the dedicated hardware solutions that are required for most storage area networks (SANs).

Important

You should note that there is a notable performance operating cost with any end-to-end encryption protection when compared to non-encrypted.

Enable SMB Encryption

You can enable SMB Encryption for the entire file server or only for specific file shares. Use one of the following procedures to enable SMB Encryption:

Microsoft Smb Domain Server Mac Download

Enable SMB Encryption with Windows PowerShell

  1. To enable SMB Encryption for an individual file share, type the following script on the server:

  2. To enable SMB Encryption for the entire file server, type the following script on the server:

  3. To create a new SMB file share with SMB Encryption enabled, type the following script:

Enable SMB Encryption with Server Manager

  1. In Server Manager, open File and Storage Services.
  2. Select Shares to open the Shares management page.
  3. Right-click the share on which you want to enable SMB Encryption, and then select Properties.
  4. On the Settings page of the share, select Encrypt data access. Remote file access to this share is encrypted.

Considerations for deploying SMB Encryption

By default, when SMB Encryption is enabled for a file share or server, only SMB 3.0 clients are allowed to access the specified file shares. This enforces the administrator's intent of safeguarding the data for all clients that access the shares. However, in some circumstances, an administrator may want to allow unencrypted access for clients that do not support SMB 3.0 (for example, during a transition period when mixed client operating system versions are being used). To allow unencrypted access for clients that do not support SMB 3.0, type the following script in Windows PowerShell:

The secure dialect negotiation capability described in the next section prevents a man-in-the-middle attack from downgrading a connection from SMB 3.0 to SMB 2.0 (which would use unencrypted access). However, it does not prevent a downgrade to SMB 1.0, which would also result in unencrypted access. To guarantee that SMB 3.0 clients always use SMB Encryption to access encrypted shares, you must disable the SMB 1.0 server. (For instructions, see the section Disabling SMB 1.0.) If the –RejectUnencryptedAccess setting is left at its default setting of $true, only encryption-capable SMB 3.0 clients are allowed to access the file shares (SMB 1.0 clients will also be rejected).

Note

  • SMB Encryption uses the Advanced Encryption Standard (AES)-CCM algorithm to encrypt and decrypt the data. AES-CCM also provides data integrity validation (signing) for encrypted file shares, regardless of the SMB signing settings. If you want to enable SMB signing without encryption, you can continue to do this. For more information, see The Basics of SMB Signing.
  • You may encounter issues when you attempt to access the file share or server if your organization uses wide area network (WAN) acceleration appliances.
  • With a default configuration (where there is no unencrypted access allowed to encrypted file shares), if clients that do not support SMB 3.0 attempt to access an encrypted file share, Event ID 1003 is logged to the Microsoft-Windows-SmbServer/Operational event log, and the client will receive an Access denied error message.
  • SMB Encryption and the Encrypting File System (EFS) in the NTFS file system are unrelated, and SMB Encryption does not require or depend on using EFS.
  • SMB Encryption and the BitLocker Drive Encryption are unrelated, and SMB Encryption does not require or depend on using BitLocker Drive Encryption.

Secure dialect negotiation

SMB 3.0 is capable of detecting man-in-the-middle attacks that attempt to downgrade the SMB 2.0 or SMB 3.0 protocol or the capabilities that the client and server negotiate. When such an attack is detected by the client or the server, the connection is disconnected and event ID 1005 is logged in the Microsoft-Windows-SmbServer/Operational event log. Secure dialect negotiation cannot detect or prevent downgrades from SMB 2.0 or 3.0 to SMB 1.0. Because of this, and to take advantage of the full capabilities of SMB Encryption, we strongly recommend that you disable the SMB 1.0 server. For more information, see Disabling SMB 1.0.

The secure dialect negotiation capability that is described in the next section prevents a man-in-the-middle attack from downgrading a connection from SMB 3 to SMB 2 (which would use unencrypted access); however, it does not prevent downgrades to SMB 1, which would also result in unencrypted access. For more information on potential issues with earlier non-Windows implementations of SMB, see the Microsoft Knowledge Base.

New signing algorithm

SMB 3.0 uses a more recent encryption algorithm for signing: Advanced Encryption Standard (AES)-cipher-based message authentication code (CMAC). SMB 2.0 used the older HMAC-SHA256 encryption algorithm. AES-CMAC and AES-CCM can significantly accelerate data encryption on most modern CPUs that have AES instruction support. For more information, see The Basics of SMB Signing.

Disabling SMB 1.0

The legacy computer browser service and Remote Administration Protocol features in SMB 1.0 are now separate, and they can be eliminated. These features are still enabled by default, but if you do not have older SMB clients, such as computers running Windows Server 2003 or Windows XP, you can remove the SMB 1.0 features to increase security and potentially reduce patching.

Mac Smb Share

Note

SMB 2.0 was introduced in Windows Server 2008 and Windows Vista. Older clients, such as computers running Windows Server 2003 or Windows XP, do not support SMB 2.0; and therefore, they will not be able to access file shares or print shares if the SMB 1.0 server is disabled. In addition, some non-Microsoft SMB clients may not be able to access SMB 2.0 file shares or print shares (for example, printers with “scan-to-share” functionality).

Before you start disabling SMB 1.0, you'll need to find out if your SMB clients are currently connected to the server running SMB 1.0. To do this, enter the following cmdlet in Windows PowerShell:

Note

You should run this script repeatedly over the course of a week (multiple times each day) to build an audit trail. You could also run this as a scheduled task.

To disable SMB 1.0, enter the following script in Windows PowerShell:

Note

If an SMB client connection is denied because the server running SMB 1.0 has been disabled, event ID 1001 will be logged in the Microsoft-Windows-SmbServer/Operational event log.

More information

Here are some additional resources about SMB and related technologies in Windows Server 2012.