Move Installer for OpenSSH to a runspace (#3117)

This commit is contained in:
DeveloperDurp
2025-01-10 13:39:21 -06:00
committed by GitHub
parent 02f0f85c25
commit fa9dbcace4
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,17 @@
function Invoke-WPFSSHServer {
<#
.SYNOPSIS
Invokes the OpenSSH Server install in a runspace
#>
Invoke-WPFRunspace -DebugPreference $DebugPreference -ScriptBlock {
Invoke-WinUtilSSHServer
Write-Host "======================================="
Write-Host "-- OpenSSH Server installed! ---"
Write-Host "======================================="
}
}