Distributed Transaction Coordinator
netsh advfirewall firewall add rule name="MSDTC" dir=in action=allow program="%windir%\system32\msdtc.exe" enable=yes
netsh advfirewall firewall add rule name="Distributed Transaction Coordinator" dir=in action=allow program="%windir%\system32\msdtc.exe" enable=yes
netsh advfirewall firewall set rule name="Distributed Transaction Coordinator (TCP-In)" new enable=yes profile="domain"
netsh advfirewall firewall set rule name="Distributed Transaction Coordinator (TCP-Out)" new enable=yes profile="domain"
netsh advfirewall firewall set rule name="Distributed Transaction Coordinator (RPC)" new enable=yes profile="domain"
netsh advfirewall firewall set rule name="Distributed Transaction Coordinator (RPC-EPMAP)" new enable=yes profile="domain"
netsh advfirewall firewall set rule name="Distributed Transaction Coordinator (TCP-In)" new enable=yes profile="domain"
netsh advfirewall firewall set rule name="Distributed Transaction Coordinator (TCP-Out)" new enable=yes profile="domain"
netsh advfirewall firewall set rule name="Distributed Transaction Coordinator (RPC)" new enable=yes profile="domain"
netsh advfirewall firewall set rule name="Distributed Transaction Coordinator (RPC-EPMAP)" new enable=yes profile="domain
netsh advfirewall firewall set rule group="Distributed Transaction Coordinator" new enable=yes
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=yes
To begin, open a command prompt as administrator.
To turn off Windows Firewall for Domain Networks type the following command:
netsh advfirewall set domain state off
To turn off Windows Firewall for Private Networks type the following command:
netsh advfirewall set private state off
To turn off Windows Firewall for Public Networks type the following command:
netsh advfirewall set public state off
To turn off Windows Firewall for All Networks (Domain, Private, Public) type the following command:
netsh advfirewall set allprofiles state off
Now, if you needed to turn Windows Firewall back on using this utility you can type the same commands and just change “off” to “on”. For example, if you wanted to turn the Windows Firewall on for all networks you would type the following command:
netsh advfirewall set allprofiles state on
netsh firewall set portopening protocol = TCP port = 1433 name = SQLPort mode = ENABLE scope = SUBNET profile = CURRENT
ไม่มีความคิดเห็น:
แสดงความคิดเห็น