Copy files on a NAS

Discussion in 'Windows 10' started by tistou77, Jul 20, 2020.

  1. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,949
    613
    60
    Hello

    I created a shortcut (add network location) to access the file on the hard drive of my ISP's box

    But every time I copy a file to disk or from disk, I have a copy of the file in a folder in "AppData\Local\Microsoft\Windows\INetCache"

    For the moment, I have restricted writing to this directory, but is there a better method?
    prevent copying of files, deletion of file at the end of copying

    Thanks for your help
     
  2. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,949
    613
    60
    Thanks so much ;)

    I'll test with this registrey key
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanWorkstation\Parameters]
    DirectoryCacheLifetime"=dword:00000000

    The ISP's box is in SMBv1 (I believe) it should still work
    Otherwise, I will test with the registry key, I use NTLite and is removed some components (including "LanmanWorkstation")

    Thanks
     
  3. For SMBv1 only DirectoryCacheLifetime is needed, for SMBv2/v3 every key is needed.
     
  4. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,949
    613
    60
    Ok thanks for your help