Enable ssh-agent on windows by default

This commit is contained in:
Manuel Thalmann 2023-07-16 15:50:56 +02:00
parent a44dee9522
commit ec1220a9d2
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,4 @@
#!/bin/pwsh
param($context)
Set-Service ssh-agent -StartupType AutomaticDelayedStart;

View file

@ -12,7 +12,11 @@ function Invoke-WindowsInstallation([Context] $context)
Update-WindowsInstallation $context;
if (-not $context.Get("InitialConfiguration")) {
. "$PSScriptRoot/../Config/Explorer/Install.ps1" $context;
$configPath = "$PSScriptRoot/../Config";
. "$configPath/Explorer/Install.ps1" $context;
. "$configPath/OpenSSH/Install.ps1" $context;
$context.RemoveDesktopIcon("*Microsoft Edge*");
$context.Set("InitialConfiguration", 1, "DWord");
}