Initial intranet dashboard app

This commit is contained in:
b17301
2026-04-07 15:15:15 +09:00
commit 27a29e8e4c
18 changed files with 7686 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
param(
[string]$ListenAddress = "0.0.0.0",
[int]$Port = 8010,
[string]$RuleName = "MyIntranetApp-8010"
)
$ErrorActionPreference = "Stop"
netsh interface portproxy delete v4tov4 listenport=$Port listenaddress=$ListenAddress | Out-Null
$existingRule = Get-NetFirewallRule -DisplayName $RuleName -ErrorAction SilentlyContinue
if ($existingRule) {
Remove-NetFirewallRule -DisplayName $RuleName | Out-Null
}
Write-Host "Removed portproxy and firewall rule for port $Port" -ForegroundColor Yellow