diff --git a/Default.preset b/Default.preset index e94d259d..fe8e2dc0 100644 --- a/Default.preset +++ b/Default.preset @@ -118,6 +118,7 @@ SetVisualFXPerformance # SetVisualFXAppearance # DisableStartupSound # EnableStartupSound # DisableChangingSoundScheme # EnableChangingSoundScheme # EnableVerboseStatus # DisableVerboseStatus +DisableF1HelpKey # EnableF1HelpKey ### Explorer UI Tweaks ### # ShowExplorerTitleFullPath # HideExplorerTitleFullPath diff --git a/Win10.psm1 b/Win10.psm1 index 982167e5..58033694 100644 --- a/Win10.psm1 +++ b/Win10.psm1 @@ -1844,6 +1844,25 @@ Function DisableVerboseStatus { New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'VerboseStatus' -Value '0' -PropertyType DWORD -Force } +# Disable F1 Help key in Explorer and on the Desktop +Function DisableF1HelpKey { + Write-Output "Disabling F1 Help key..." + If (!(Test-Path "HKCU:\Software\Classes\TypeLib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win32")) { + New-Item -Path "HKCU:\Software\Classes\TypeLib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win32" -Force | Out-Null + } + Set-ItemProperty -Path "HKCU:\Software\Classes\TypeLib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win32" -Name "(Default)" -Type "String" -Value "" + If (!(Test-Path "HKCU:\Software\Classes\TypeLib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win64")) { + New-Item -Path "HKCU:\Software\Classes\TypeLib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win64" -Force | Out-Null + } + Set-ItemProperty -Path "HKCU:\Software\Classes\TypeLib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win64" -Name "(Default)" -Type "String" -Value "" +} + +# Enable F1 Help key in Explorer and on the Desktop +Function EnableF1HelpKey { + Write-Output "Enabling F1 Help key..." + Remove-Item "HKCU:\Software\Classes\TypeLib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0" -Recurse -ErrorAction SilentlyContinue +} + ########## #endregion UI Tweaks ##########