From d0ece2bc93e30c829d5c0a000819af92600b5f91 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Mon, 15 Jul 2019 05:57:33 -0300 Subject: [PATCH] docs: Add command to quickly fix the SMBv2 cache (#19210) Running this command is more convenient than manually editing regedit. --- docs/development/build-instructions-gn.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/development/build-instructions-gn.md b/docs/development/build-instructions-gn.md index 561e90237..2a5c6d55f 100644 --- a/docs/development/build-instructions-gn.md +++ b/docs/development/build-instructions-gn.md @@ -265,6 +265,12 @@ HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Lanmanworkstation\Parameter to 0. More information: https://stackoverflow.com/a/9935126 +This can be set quickly in powershell (ran as administrator): + +```powershell +New-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\Lanmanworkstation\Parameters" -Name DirectoryCacheLifetime -Value 0 -PropertyType DWORD -Force +``` + ## Troubleshooting ### Stale locks in the git cache