Skip to content

Instantly share code, notes, and snippets.

@itoleck
Last active December 3, 2021 03:27
Show Gist options
  • Save itoleck/1db271c4736470e102f22a18e569d0de to your computer and use it in GitHub Desktop.
Save itoleck/1db271c4736470e102f22a18e569d0de to your computer and use it in GitHub Desktop.
#Ctrl-Scroll-Scroll
New-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\i8042prt\Parameters" -Name "CrashOnCtrlScroll" -Value 1 -PropertyType "DWORD" -Force
New-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\kbdhid\Parameters" -Name "CrashOnCtrlScroll" -Value 1 -PropertyType "DWORD" -Force
#Perfmon PIDs
New-ItemProperty -Path "HKLM:\System\CurrentControlSet\Services\PerfProc\Performance" -Name "ProcessNameFormat" -Value 2 -PropertyType "DWORD" -Force
#Show Win11 Menu
REG ADD "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
#WER
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" -Name "DumpFolder" -Value "%TEMP%\CrashDumps" -PropertyType "ExpandString" -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" -Name "DumpCount" -Value 3 -PropertyType "DWORD" -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" -Name "DumpType" -Value 2 -PropertyType "DWORD" -Force
#Startup
New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer" -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\Serialize" -Name "StartupDelayInMSec" -Value 0 -PropertyType "DWORD" -Force
#UAC, Do not dim
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "ConsentPromptBehaviorAdmin" -Value 5 -PropertyType "DWORD" -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "ConsentPromptBehaviorUser" -Value 5 -PropertyType "DWORD" -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "PromptOnSecureDesktop" -Value 0 -PropertyType "DWORD" -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment