Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit 7d59f5b

Browse files
committed
Don't autostart OpenSSH Server without letting user configure it first
1 parent a56893c commit 7d59f5b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Win10.psm1

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3448,14 +3448,11 @@ Function InstallSSHClient {
34483448
Function InstallSSHServer {
34493449
Write-Output "Installing OpenSSH Server..."
34503450
Get-WindowsCapability -Online | Where-Object { $_.Name -like "OpenSSH.Server*" } | Add-WindowsCapability -Online | Out-Null
3451-
Set-Service "sshd" -StartupType Automatic
3452-
Start-Service "sshd" -WarningAction SilentlyContinue
34533451
}
34543452

34553453
# Uninstall OpenSSH Server - Applicable since 1809
34563454
Function UninstallSSHServer {
34573455
Write-Output "Uninstalling OpenSSH Server..."
3458-
Stop-Service "sshd" -WarningAction SilentlyContinue
34593456
Get-WindowsCapability -Online | Where-Object { $_.Name -like "OpenSSH.Server*" } | Remove-WindowsCapability -Online | Out-Null
34603457
}
34613458

0 commit comments

Comments
 (0)