mansz81

netsh-reset.bat

Mar 26th, 2022 (edited)
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" /va /f
  3. reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" /f
  4. reg add "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers"
  5. attrib -s -h %userprofile%\documents\Default.rdp
  6. del %userprofile%\documents\Default.rdp
  7. del /f /s /q /a %AppData%\Microsoft\Windows\Recent\AutomaticDestinations
  8. netsh interface tcp set global autotuning=disabled
  9. netsh int ip reset restlog.txt
  10. netsh winsock reset
  11. netsh winhttp reset proxy
  12. netsh int ip reset all
  13. ipconfig /flushdns
  14. ipconfig /renew
  15. exit
Add Comment
Please, Sign In to add comment