mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-04 12:04:55 -06:00
Compare commits
3 Commits
76263ecd88
...
be11bac6f7
Author | SHA1 | Date | |
---|---|---|---|
|
be11bac6f7 | ||
|
28bea518f0 | ||
|
a0e31b0954 |
@ -47,6 +47,8 @@ function Set-WinUtilRegistry {
|
|||||||
Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception"
|
Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception"
|
||||||
} catch [System.Management.Automation.ItemNotFoundException] {
|
} catch [System.Management.Automation.ItemNotFoundException] {
|
||||||
Write-Warning $psitem.Exception.ErrorRecord
|
Write-Warning $psitem.Exception.ErrorRecord
|
||||||
|
} catch [System.UnauthorizedAccessException]{
|
||||||
|
Write-Warning $psitem.Exception.Message
|
||||||
} catch {
|
} catch {
|
||||||
Write-Warning "Unable to set $Name due to unhandled exception"
|
Write-Warning "Unable to set $Name due to unhandled exception"
|
||||||
Write-Warning $psitem.Exception.StackTrace
|
Write-Warning $psitem.Exception.StackTrace
|
||||||
|
@ -59,6 +59,6 @@ function Invoke-WPFButton {
|
|||||||
"MicrowinScratchDirBT" {Invoke-ScratchDialog}
|
"MicrowinScratchDirBT" {Invoke-ScratchDialog}
|
||||||
"WPFWinUtilInstallPSProfile" {Invoke-WinUtilInstallPSProfile}
|
"WPFWinUtilInstallPSProfile" {Invoke-WinUtilInstallPSProfile}
|
||||||
"WPFWinUtilUninstallPSProfile" {Invoke-WinUtilUninstallPSProfile}
|
"WPFWinUtilUninstallPSProfile" {Invoke-WinUtilUninstallPSProfile}
|
||||||
"WPFWinUtilSSHServer" {Invoke-WinUtilSSHServer}
|
"WPFWinUtilSSHServer" {Invoke-WPFSSHServer}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
17
functions/public/Invoke-WPFSSHServer.ps1
Normal file
17
functions/public/Invoke-WPFSSHServer.ps1
Normal 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 "======================================="
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user