diff --git a/scripts/Windows/Config/Windows/Install.ps1 b/scripts/Windows/Config/Windows/Install.ps1 new file mode 100644 index 00000000..146440d6 --- /dev/null +++ b/scripts/Windows/Config/Windows/Install.ps1 @@ -0,0 +1,14 @@ +#!/bin/pwsh +param($context) +Write-Host "Configuring Windows"; + +$action = { + param([Microsoft.Win32.RegistryKey] $userKey) + + $spacingProperty = "IconSpacing"; + $keyPath = "$($userKey.PSPath)\Control Panel\Desktop\WindowMetrics"; + Rename-ItemProperty $keyPath $spacingProperty "_$spacingProperty"; + Set-ItemProperty $keyPath -Name $spacingProperty -Value "-1710" -Type "String"; +} + +$context.ProcessDefaultUserKey($action); diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 43e0343b..da35d0cf 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -14,6 +14,7 @@ function Invoke-WindowsInstallation([Context] $context) if (-not $context.Get("InitialConfiguration")) { $configPath = "$PSScriptRoot/../Config"; + . "$configPath/Windows/Install.ps1" $context; . "$configPath/Explorer/Install.ps1" $context; . "$configPath/OpenSSH/Install.ps1" $context;