Add "Disable F1 Help key" (#221)

This commit is contained in:
Conder000
2019-05-25 16:30:49 +02:00
committed by Disassembler0
parent 130db064bd
commit 30f93c340f
2 changed files with 20 additions and 0 deletions

View File

@@ -118,6 +118,7 @@ SetVisualFXPerformance # SetVisualFXAppearance
# DisableStartupSound # EnableStartupSound
# DisableChangingSoundScheme # EnableChangingSoundScheme
# EnableVerboseStatus # DisableVerboseStatus
DisableF1HelpKey # EnableF1HelpKey
### Explorer UI Tweaks ###
# ShowExplorerTitleFullPath # HideExplorerTitleFullPath

View File

@@ -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
##########