Initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# PowerShell script to create a new inbound rule in Windows Firewall
|
||||
|
||||
# Define the port number
|
||||
$port = 5000
|
||||
|
||||
# Define the rule name
|
||||
$ruleName = "ResourceMonitorService"
|
||||
|
||||
# Create a new inbound rule
|
||||
New-NetFirewallRule -DisplayName $ruleName -Direction Inbound -Protocol TCP -LocalPort $port -Action Allow -Profile Any
|
||||
Reference in New Issue
Block a user