Pre configuring the firewall

Hey, I would like to install the firewall onto a server and pre configure it for Remote Desktop. I have done some testing with a virtual machine and it seems that it disables remote desktop after restart. I have tried to install the program and configure settings before restarting but it does not allow modifying settings.

My question is there a way to pre configure the firewall so it will accept remote desktop after the computer restarts?