Skip to content

Instantly share code, notes, and snippets.

View programcsharp's full-sized avatar

Chris Hynes programcsharp

View GitHub Profile
@programcsharp
programcsharp / set-win-resize-border-100.ps1
Created October 28, 2023 14:44 — forked from yzorg/set-win-resize-border-100.ps1
Make Win10/Win11 window borders a bit easier to resize. Key is from https://superuser.com/a/1767917/31557
# reg key is from https://superuser.com/a/1767917/31557
$BorderWidthValue = -120
#$BorderWidthValue = -200 # uncomment this to make them really wide, @yzorg likes -100 so kept that default
# make a backup of current value
pushd ~\Documents
reg export 'HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics' .\registry-WindowMetrics-old.reg
pushd ('HKEY_CURRENT_USER\Control Panel\Desktop' -replace 'HKEY_CURRENT_USER','HKCU:')