Skip to content

Instantly share code, notes, and snippets.

View mikemartin1090's full-sized avatar

Mike Martin mikemartin1090

View GitHub Profile
@mikemartin1090
mikemartin1090 / win10prep-public.ps1
Created February 20, 2022 22:44
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