Using the command prompt
To enable or disable the Remote Desktop exception
• Type the following at the command prompt, and press ENTER:
netsh firewall set service type = remotedesktop mode =
Substitute values for the placeholder in italics. The following table lists possible values for the placeholder.
Placeholder Possible Values Description
Specifies whether to enable or disable the exception.
If you get an "Access Denied" message when you run a command, you do not have administrative rights to configure Windows Firewall. If you get an "Ok" message but the command does not take effect, the setting might be managed by Group Policy