PortValhalla/scripts/Windows/Software/OpenSSH/Manage.ps1

21 lines
427 B
PowerShell
Raw Normal View History

using namespace Microsoft.Win32;
param(
$Action,
[hashtable] $Arguments
)
2024-08-07 19:05:32 +00:00
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
Start-SoftwareInstaller @PSBoundParameters `
-Installer {
param(
[scriptblock] $Installer
)
& $Installer -Action ([InstallerAction]::Configure)
} `
-Configurator {
Set-Service ssh-agent -StartupType AutomaticDelayedStart;
};