diff --git a/scripts/Windows/Config/Windows/Install.ps1 b/scripts/Windows/Config/Windows/Install.ps1 index 146440d6..44efb54c 100644 --- a/scripts/Windows/Config/Windows/Install.ps1 +++ b/scripts/Windows/Config/Windows/Install.ps1 @@ -6,7 +6,9 @@ $action = { param([Microsoft.Win32.RegistryKey] $userKey) $spacingProperty = "IconSpacing"; - $keyPath = "$($userKey.PSPath)\Control Panel\Desktop\WindowMetrics"; + $relativeKeyPath = "Control Panel\Desktop\WindowMetrics" + $keyPath = "$($userKey.PSPath)\$relativeKeyPath"; + Copy-ItemProperty "HKCU:\$relativeKeyPath" "$keyPath" "$spacingProperty"; Rename-ItemProperty $keyPath $spacingProperty "_$spacingProperty"; Set-ItemProperty $keyPath -Name $spacingProperty -Value "-1710" -Type "String"; }