NEW: Some new scripts

This commit is contained in:
xpk
2025-10-25 16:52:03 +08:00
parent 52f8735047
commit 4abba069f9
4 changed files with 102 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Start-Service sshd
Set-Service -Name sshd -StartupType 'Automatic'
New-NetFirewallRule -Name "SSH" -DisplayName "OpenSSH Server" -Enabled True -Direction Inbound -Protocol TCP -LocalPort 22 -Action Allow