Windows Server 2008 Core introduces some challenges in administering servers without an explorer shell. Hello, this is LaNae Wade from the Directory Services team. If you want to view all your firewall rules you can use Get-NetFirewallRule Command, As well as for removing a rule Remove-NetFirewallRule command is used.First published on TechNet on Jun 05, 2008 You can also set an IP Range or Group of IP addresses for giving them permission for remote access- $IPs = “192.168.100.15-192.168.100.200”, ”10.1.0.0/16”)New-NetFirewallRule -DisplayName “AllowRDP” –RemoteAddress $IPs -Direction Inbound -Protocol TCP –LocalPort 3389 -Action Allow Now there is a problem, In this situation, everyone can access your server using a Remote Desktop within your network, To solve this If you want to specify an IP address from where your server can be accessible, you can also do that, $IP = "10.3.97.191" New-NetFirewallRule -DisplayName “AllowRDP” –RemoteAddress $IP -Direction Inbound -Protocol TCP –LocalPort 3389 -Action Allow If you allow port 3389 then from a remote host you can access your server. New-NetFirewallRule -DisplayName “AllowRDP” -Direction Inbound -Protocol TCP –LocalPort 3389 -Action Allow There are various ways to solve this problem, but In here I am going to show you how you gonna solve this problem with a PowerShell script.įirst of all, you have to enable the “RDP” port (3389) for a remote connection by writing a new firewall rule using Powershell. In that case, How you will solve this problem? Suppose, your firewall is enabled on your Windows server, but you want to access your server using “Remote Desktop”
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |