Skip to content

Instantly share code, notes, and snippets.

@hidekiy
Last active December 28, 2015 15:49
Show Gist options
  • Save hidekiy/7524497 to your computer and use it in GitHub Desktop.
Save hidekiy/7524497 to your computer and use it in GitHub Desktop.
$master = Get-ItemProperty -path Registry::\HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings
Get-ChildItem Registry::\HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions | ForEach-Object {
for ($i = 0; $i -lt 22; $i++) {
Write-Host "Registry::$_"
Set-ItemProperty -Path "Registry::$_" -Name "Colour$i" -Value $master."Colour$i"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment