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 /"Workflow Management Site" /+bindings.[protocol='http',bindingInformation='*:12291:']

創作者 shadow 的頭像


shadow 發表在 痞客邦 留言(0) 人氣()