# set the font and size (also applies to Notepad) $path = "HKCU:\Software\Microsoft\Notepad" Set-ItemProperty-Path$path-Name lfFaceName -Value$Font Set-ItemProperty-Path$path-Name iPointSize -Value$FontSize
# enable the preview of PowerShell files $path = 'HKCU:\Software\Classes\.ps1' $exists = Test-Path-Path$path if (!$exists){ $null = New-Item-Path$Path } $path = 'HKCU:\Software\Classes\.psd1' $exists = Test-Path-Path$path if (!$exists){ $null = New-Item-Path$Path }