首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > IIS >

命令行平添防火墙规则及改变IIS站点的信息

2012-09-05 
命令行添加防火墙规则及改变IIS站点的信息Save it as batch file and run it to see what will happenfor

命令行添加防火墙规则及改变IIS站点的信息

Save it as batch file and run it to see what will happen

for set site infor, please make sure the sitename is existed.

rem add rule in Firewall setting: 12290,12291
cmd /c netsh advfirewall firewall add rule name="WF Mgmt Site." dir=in action=allow protocol=TCP LocalPort="12290,12291" Profile="Domain,Private,Public"
rem add the port to site"Workflow Management Site"
%Windir%\System32\inetsrv\appcmd set site /site.name:"Workflow Management Site" /+bindings.[protocol='http',bindingInformation='*:12291:']

热点排行