Back up original spacing property
This commit is contained in:
parent
58622be1b1
commit
32a8ec94b1
1 changed files with 3 additions and 1 deletions
|
@ -6,7 +6,9 @@ $action = {
|
||||||
param([Microsoft.Win32.RegistryKey] $userKey)
|
param([Microsoft.Win32.RegistryKey] $userKey)
|
||||||
|
|
||||||
$spacingProperty = "IconSpacing";
|
$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";
|
Rename-ItemProperty $keyPath $spacingProperty "_$spacingProperty";
|
||||||
Set-ItemProperty $keyPath -Name $spacingProperty -Value "-1710" -Type "String";
|
Set-ItemProperty $keyPath -Name $spacingProperty -Value "-1710" -Type "String";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue