Enable ssh-agent on windows by default

This commit is contained in:
Manuel Thalmann 2023-07-16 15:50:56 +02:00
parent 5e6e8aa4a3
commit 368ccbdf28
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");
}