We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b265675 + 6b0ede8 commit 7445c02Copy full SHA for 7445c02
functions/private/Invoke-WinUtilSSHServer.ps1
@@ -42,7 +42,7 @@ function Invoke-WinUtilSSHServer {
42
} else {
43
try {
44
Write-Host "ssh-agent is not running. Attempting to restart..."
45
- Restart-Service -Name sshd -Force
+ Restart-Service -Name 'ssh-agent' -Force
46
Write-Host "ssh-agent has been restarted successfully."
47
} catch {
48
Write-Host "Failed to restart ssh-agent : $_"
0 commit comments