Here they are some powerhesll commands.
To view actual rule status:
Get-NetFirewallRule -DisplayName '*Remote Desktop*'
To view more detailed rules informations:
Get-NetFirewallRule -DisplayName '*Remote Desktop*' | Get-NetFirewallPortFilter
If you want to setting up to precedent settings displayed:
Get-NetFirewallRule -DisplayName '*Remote Desktop*' | Set-NetFirewallRule -Action Block
Another useful cmdlet is called Show-NetFirewallRule. Recall that we could not see all of the details when using Get-NetFirewallRule earlier. Using Show-NetFirewallRule, we're able to instantly see everything that's involved with one or all firewall rules.
Show-NetFirewallRule
For deeper explanation and relative usage you can review this article:
http://www.tomsitpro.com/articles/managing-windows-firewall-powershell,1-3588.html#xtor=RSS-100