Skip to content

Instantly share code, notes, and snippets.

@mikemartin1090
Created February 20, 2022 22:44
Show Gist options
  • Select an option

  • Save mikemartin1090/7f65138ab769ce19986cb9373004d27d to your computer and use it in GitHub Desktop.

Select an option

Save mikemartin1090/7f65138ab769ce19986cb9373004d27d to your computer and use it in GitHub Desktop.
Windows 10 settings that are always annoying to find for networking.
#enable rdp
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
#disable nla for rdp
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 0 /f
#enable local admin shares
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "LocalAccountTokenFilterPolicy" /t REG_DWORD /d 1 /f
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=yes
#disable firewall for rdp
netsh advfirewall firewall set rule group="Remote Desktop" new enable=Yes
#enable ping
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol="icmpv4:8,any" dir=in action=allow
#set eastern standard time zone
tzutil /s "Eastern Standard Time"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment