none
Disabling SMB2 and SMB3 Client from Windows Vista, Windows 7 and Windows 8. RRS feed

  • Question

  • There are many programs that are using a shared file on the server from clients from XP to Windows 10. From time to time it seems like there is a network outage and the handle to the file is broken and the file
    cannot be read or updated. It seems more prevalent on a Windows 2012 server but may have happened from time to time on 2008 & 2008 R2. However there are not any network problems so it just leaves the server & Client

    

    I have searched for possible resolutions including:-

    • Turning  off the Cache for the share

    • Disabling the network adapter power setting to allow windows to put the device to sleep.

    • Disabling  Antivirus/configuring it to ignore folders for on access scanning

    • Disabling SMB  Signing

    • Configuring the  clients DWORD registry value SilentForcedAutoReconnect=1 in HKEY_LOCAL_MACHINE\Software\Microsoft\CurrentVersion\NetCache

    • Setting the "NET CONFIG SERVER /AUTODISCONNECT:-1" to not drop client
      connections

    

    The last bit of trouble shooting that I can think of is to disable SMB2 and SMB3 as that does a lot of caching and batching of packets which could also be the cause of the problem.

    

    I have looked at http://support.microsoft.com/kb/2696547/en-us

    

    I have disabled SMB2&3 on the server as that is very straight forward.

    When I get to the section about disabling SMB2 on the client the command fails.

    

    

    sc config
    lanmanworkstation depend= bowser/mrxsmb10/nsi

      After running the above command, it returns an error: 

    

          [SC] ChangeServiceConfig FAILED 1059:

          Circular Service Dependency was specified.

    

    

    So it's not worth running the following command:

       
    sc config mrxsmb20 start= disabled

    

    

    I have tried the command on Windows Vista, Windows 7 and Windows 10 just to confirm that it's  nothing to do with any particular PC, machines in Domains and Non-Domain machines.

    

    

    So, my questions are:-

    

    1, is http://support.microsoft.com/kb/2696547/en-us actually correct and up to date and for the OSes (Vista, 7, 8, 8.1, 2012 server and Windows 10) with latest updates & service packs?

    

    2, How do I disable SMB2 and SMB3 on clients for troubleshooting purposes the server to resolve problems with shared files (multi user access)

    3, If I just disable SMB2 & 3 from the server would that force the clients not to use SMB2 when communicating with the server and therefore not caching the directory structure and file not found etc? I have seen posts that suggest this is not the case.

    4. Does sc.exe have a bug in it?

    

    Thanks in advance

    Rob

    



    • Edited by rob-j Thursday, October 23, 2014 8:24 AM added question 4
    Wednesday, October 22, 2014 3:55 PM

Answers

  • Roger

    I realise that I actually typed "Browser" not "bowser" in the command.

    I'm testing on a non-internet connected network so I hadn't copied and pasted the command from the test computer.

    The command was

        sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi

    I actually typed

        sc.exe config lanmanworkstation depend= browser/mrxsmb10/nsi

    If found a post where in the comments someone did the same as me!

    Thanks once again for your time taken in responding.

    Rob


    • Marked as answer by rob-j Friday, October 31, 2014 9:27 AM
    • Edited by rob-j Friday, October 31, 2014 1:36 PM
    Friday, October 31, 2014 9:27 AM

All replies

  • Hi,

    We do need some more time to make research, I would post back a fewer hours late, please be paint.

    Thanks for your understanding.


    Roger Lu
    TechNet Community Support

    Thursday, October 23, 2014 1:07 PM
    Moderator
  • Roger,

    Not a problem. I'll look forward to hearing from you once you're had time to research/test the problem

    Regards

    Rob

    Thursday, October 23, 2014 1:15 PM
  • Hi Roger,

    Have you had a chance to look at this?

    The command

     sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi

    returns

    [SC] ChangeServiceConfig FAILED 1059:
    
          Circular Service Dependency was specified.
    If we just concentrate on Windows 7 - 64bit it might be easier as this is a generic problem on all versions of windows from Vista up.

    • Edited by rob-j Monday, October 27, 2014 5:16 PM
    Monday, October 27, 2014 5:16 PM
  • Hi,

    I made a test in our testing enviroment, everything works fine to disable SMB2 and 3. For your problem, in my opinion, as I didn't find any specific report about this error, it would be better to use Process Monitor to capture the trace when running the command.

    Start Process Monitor, then set the filter as cmd.exe, after that, open CMD and execute the command.

    Process Monitor: http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx

    In addition, I found another thread that had similar error with yours, you can take its solution as reference.

    https://social.technet.microsoft.com/Forums/windows/en-US/506828c8-e7af-4039-aca7-43321939bb55/offline-files-synchronization-error-the-file-specified-cannot-be-found?forum=w7itpronetworking


    Roger Lu
    TechNet Community Support

    Wednesday, October 29, 2014 8:23 AM
    Moderator
  • Hi,

    I made a test in our testing enviroment, everything works fine to disable SMB2 and 3. For your problem, in my opinion, as I didn't find any specific report about this error, it would be better to use Process Monitor to capture the trace when running the command.

    Start Process Monitor, then set the filter as cmd.exe, after that, open CMD and execute the command.

    Process Monitor: http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx

    In addition, I found another thread that had similar error with yours, you can take its solution as reference.

    https://social.technet.microsoft.com/Forums/windows/en-US/506828c8-e7af-4039-aca7-43321939bb55/offline-files-synchronization-error-the-file-specified-cannot-be-found?forum=w7itpronetworking


    Roger Lu
    TechNet Community Support

    Roger,

    Many thanks for the time taken to look into this.

    I've downloaded process monitor and loaded it. I filtered for cmd.exe started capture and saved a 1mb file.

    However I don't think this is going to help unless you can point me in the direction of what you're expecting to see in the capture file? If you want me to send you it I can but it does contain personal information which I'd rather not place online.


    You can recreate the problem yourself by doing the following:

      • Go to modern.ie
      • Download any windows 7 virtual machine for your preferred of virtualisation  platform 
      • log in, start cmd as administrator and run the command
    	sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi

    You will also receive the same error.

    [SC] ChangeServiceConfig FAILED 1059:
    
          Circular Service Dependency was specified.

    You can also try it on the Windows 8 and 8.1 machine if you have time.

    I checked the link to the similar error and that just looks at the file not found problem which is the smb2 cache. They still didn't resolve the slow access to the share which is seen on a machine that has anti-virus on it when you go to right click on the folder or a file in the folder. It's about a 20 second (spinning circle) pause every time. The problem is bigger than that. If you have shared files on the network share that are used by multiple people at the same time, say a spreadsheet or database file windows is loosing the connection to that file so the user cannot write to it even if they have the file open. The smb2 caching shouldn't cause that problem.

    It appears that I have to disable from SMB2 and SMB3 and ensure that the clients only use SMB1.

    If SMB2 & SMB3 are disabled from the lanmanworkstation service the clients will not do any caching even if the server has disabled the share cache (offline files for that share).

    The problem with the "Circular reference" error message is standard across all versions of windows that have "smb2" or "smb2 and smb3". Can you recreate that problem? Or is it working on your windows computer and on the machines downloaded from modern.ie ?

    My testing has shown that the command "sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi" does not work. Therefore that's the one I want to resolve first. By resolving that I may be able to get the clients accessing the share to behave themselves and use the shared files correctly as they always did from Windows 95/NT4 through to Windows XP and 2003/2008 server.

    I'm unable to recreate the problem with multiple users having access to shared database files on windows 2012 server from Windows 7 clients were the access to the files drops once a day or once every couple of days.

    Kindest Regards

    Robert





    • Edited by rob-j Wednesday, October 29, 2014 2:34 PM
    Wednesday, October 29, 2014 1:30 PM
  • Hi,

    Thanks for your detailed information, it would be better to upload the Process Monitor trace log and share with us.

    For your situation, I would do further testing, if there is any progress, I would post here. In addition, I would involve other engineer in this thread, hope we could find the reason of your problem early.


    Roger Lu
    TechNet Community Support

    Friday, October 31, 2014 9:16 AM
    Moderator
  • Roger

    I realise that I actually typed "Browser" not "bowser" in the command.

    I'm testing on a non-internet connected network so I hadn't copied and pasted the command from the test computer.

    The command was

        sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi

    I actually typed

        sc.exe config lanmanworkstation depend= browser/mrxsmb10/nsi

    If found a post where in the comments someone did the same as me!

    Thanks once again for your time taken in responding.

    Rob


    • Marked as answer by rob-j Friday, October 31, 2014 9:27 AM
    • Edited by rob-j Friday, October 31, 2014 1:36 PM
    Friday, October 31, 2014 9:27 AM
  • Thank you!!!

    bowser vs. bRowser was my issue too.  My brain added an R because I couldn't copy and paste.

    Thursday, December 29, 2016 8:07 PM