=========================================================================
IPV6 disabled from registry settings
-----------------------------------------------------------------------------------------------------------------------------
reg add hklm\system\currentcontrolset\services\tcpip6\parameters /v DisabledComponents /t REG_DWORD /d 0xFF /f
=========================================================================
Windows Firewall rules by command line.
-----------------------------------------------------------------------------------------------------------------------------
netsh advfirewall set allprofiles state off
netsh advfirewall show all
netsh advfirewall set allprofiles state on (Firewall on)
netsh advfirewall firewall add rule name="RDP-3001" dir=in action=allow protocol=TCP localport=3001
=========================================================================
Windows RDP Enable, Disable and Port change
=========================================================================
To disable RDP :-
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 1
To Enable RDP :-
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 0
RDP Port Change :-
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v "PortNumber" /t REG_DWORD /d "3001" /f
=========================================================================
Firewall
=========================================================================
netsh advfirewall set allprofiles state off
netsh advfirewall show all
netsh advfirewall set allprofiles state on (Firewall on)
No comments:
Post a Comment