Last active
December 20, 2023 10:29
-
-
Save mcx808/b1291f821b17a5583cc772a508c3683b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Sets user interface preferences | |
#Configure keyboard & language prefs | |
Set-WinUserLanguageList en-US -Force | |
Set-WinUILanguageOverride -Language en-GB | |
#show extensions for known file types | |
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -name 'HideFileExt' -Value 0 | |
#show hidden files and folders | |
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -name 'Hidden' -Value 1 | |
#Stop server manager on startup | |
if ((Get-CimInstance -ClassName Win32_OperatingSystem).ProductType -gt 1){ | |
New-ItemProperty -Path HKCU:\Software\Microsoft\ServerManager -Name DoNotOpenServerManagerAtLogon -PropertyType DWORD -Value "0x1" -Force | |
} | |
#Disable snap assist | |
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -name "SnapAssist" -PropertyType DWORD -Value "0x0" -Force | |
#Stop Notepad++ Autoload and set font | |
if(Test-Path $env:APPDATA\Notepad++\config.xml){ | |
[xml]$nppConfig = Get-Content $env:APPDATA\Notepad++\config.xml | |
($nppConfig.NotepadPlus.GUIConfigs.GUIConfig | ? name -EQ noUpdate).'#text' = 'yes' | |
($nppConfig.NotepadPlus.GUIConfigs.GUIConfig | ? name -EQ RememberLastSession).'#text' = 'no' | |
$nppConfig.Save("$env:APPDATA\Notepad++\config.xml") | |
} | |
if(Test-Path $env:APPDATA\Notepad++\stylers.xml){ | |
Set-Content -Value (Invoke-WebRequest -Uri 'https://gist.githubusercontent.com/mcx808/0aec8e9e3876f8ff1531455e97e27bf0/raw/1a63f8f6725945a6403a40534610a4a0ad55a490/stylers.xml' -UseBasicParsing) -Path $env:APPDATA\Notepad++\stylers.xml | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment