Skip to content

Instantly share code, notes, and snippets.

@noidexe
Last active May 15, 2021 01:34
Show Gist options
  • Save noidexe/9bd5a8ee2830d2a7439b6a716d7ed62c to your computer and use it in GitHub Desktop.
Save noidexe/9bd5a8ee2830d2a7439b6a716d7ed62c to your computer and use it in GitHub Desktop.
Fix Windows 10 being unable to access network shares or networked computers
@echo off
echo.===== RESTARTING LanmanWorkstation and dependencies =====
powershell -command "Restart-Service LanmanWorkstation -Force" && echo.===== DONE ===== || echo.### ERROR ### Did you remember to right click-^>Run as Administrator? If you still get an error after that then there is some other problem.
PAUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment