feature/laptop #2

Merged
king merged 4 commits from feature/laptop into master 2025-04-30 17:08:10 +08:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 413360ece2 - Show all commits
+1 -1
View File
@@ -1,6 +1,6 @@
# PowerShell script to create a new inbound rule in Windows Firewall
$port = 5000
$ruleName = "ResourceMonitorService"
$ruleName = "ResourceMonitorServicePublish"
if (Get-NetFirewallRule -DisplayName $ruleName) {
Write-Host "Rule already exists, not creating a new one"
} else {
+2 -2
View File
@@ -1,4 +1,4 @@
sc create ResourceMonitorServicerrr binPath= "%~dp0ResourceMonitorService.exe --windows-service" start= auto
sc description ResourceMonitorServicerrr "A service that monitors system resource usage and exposes it via a web API."
sc create ResourceMonitorService binPath="%~dp0ResourceMonitorService.exe --windows-service" start= auto
sc description ResourceMonitorService "A service that monitors system resource usage and exposes it via a web API."