docs: Add command to quickly fix the SMBv2 cache (#19210)

Running this command is more convenient than manually editing regedit.
This commit is contained in:
Thiago de Arruda 2019-07-15 05:57:33 -03:00 committed by Cheng Zhao
parent 2ce68df27a
commit d0ece2bc93

View file

@ -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