mirror of
https://github.com/Disassembler0/Win10-Initial-Setup-Script.git
synced 2026-04-23 03:00:50 -04:00
Add "Disable F1 Help key" (#221)
This commit is contained in:
@@ -118,6 +118,7 @@ SetVisualFXPerformance # SetVisualFXAppearance
|
||||
# DisableStartupSound # EnableStartupSound
|
||||
# DisableChangingSoundScheme # EnableChangingSoundScheme
|
||||
# EnableVerboseStatus # DisableVerboseStatus
|
||||
DisableF1HelpKey # EnableF1HelpKey
|
||||
|
||||
### Explorer UI Tweaks ###
|
||||
# ShowExplorerTitleFullPath # HideExplorerTitleFullPath
|
||||
|
||||
19
Win10.psm1
19
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
|
||||
##########
|
||||
|
||||
Reference in New Issue
Block a user