@echo off
@echo 请以管理员身份运行
set /p portRemark=请输入端口备注:
set /p port=请输入端口号:
powershell -command "New-NetFirewallRule -DisplayName '%portRemark%' -Direction Inbound -Action Allow -RemoteAddress Any -Protocol TCP -LocalPort %port%"
pause

 

相关文章:

  • 2022-02-09
  • 2022-12-23
  • 2022-01-18
  • 2021-12-24
  • 2022-01-10
  • 2021-08-04
  • 2021-04-05
  • 2022-12-23
猜你喜欢
  • 2022-01-22
  • 2021-04-16
  • 2021-12-18
  • 2021-10-01
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
相关资源
相似解决方案