Configuring Putty defaults using PowerShell

Configuring Putty defaults using PowerShell

Just a quick note to myself on how to setup Putty defaults for my linking using PowerShell commands to set the appropriate registry keys

putty-defaults---registry-2

# Create the 'Default Settings' registry key if it doesn't exist
if (-not (Test-Path -Path HKCU:\Software\SimonTatham\PuTTY\Sessions\Default%20Settings)) {New-Item -Path
HKCU:\Software\SimonTatham\PuTTY\Sessions\ -Name "Default%20Settings" -ItemType Key }

# Configure the background colour to be dark grey
New-Itemproperty -Path HKCU:\Software\SimonTatham\PuTTY\Sessions\Default%20Settings -Name Colour2 -Value "64,64,64" -PropertyType String

# Configure the font to be Consolas, regular, 11pt

New-Itemproperty -Path HKCU:\Software\SimonTatham\PuTTY\Sessions\Default%20Settings -Name Font -Value "Consolas" -PropertyType String

New-Itemproperty -Path HKCU:\Software\SimonTatham\PuTTY\Sessions\Default%20Settings -Name FontHeight -Value 11 -PropertyType DWord

New-Itemproperty -Path HKCU:\Software\SimonTatham\PuTTY\Sessions\Default%20Settings -Name FontBold -Value 0 -PropertyType DWord

New-Itemproperty -Path HKCU:\Software\SimonTatham\PuTTY\Sessions\Default%20Settings -Name FontCharSet -Value 0 -PropertyType DWord

# Configure font quality to be 'ClearType'
New-Itemproperty -Path HKCU:\Software\SimonTatham\PuTTY\Sessions\Default%20Settings -Name FontQuality -Value 3 -PropertyType DWord