Posted On March 31, 2019

Windows: How to Disable F1 Help Center Function in Windows Explorer

kimconnect 0 comments
blog.KimConnect.com >> Windows >> Windows: How to Disable F1 Help Center Function in Windows Explorer
Step 1: Create a Dummy File that does nothing
 
# Dummy-File-Creator.ps1
$dummyFile="C:\Windows\dummy.exe"
$output = new-object byte[] 1; (new-object Random).NextBytes($output);
[IO.File]::WriteAllBytes($dummyFile, $output);
if ($output -ne $null) {
Write-Host ("$dummyFile has been successfully created");
}else{
"Failed to create $dummyFile";
}
Step 2: edit the registry to change “helpctr.exe” to “dummy.exe”
 
# Provide variables
$hive="REGISTRY::HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\HELPCTR.EXE"
$key="(default)"
$value="C:\Windows\dummy.exe"

# Set registry key
Set-Itemproperty -path $hive -Name $key -value $value

# Verify result
$command="(get-itemproperty '$hive').'$key'"
Invoke-Expression $command;

Step 3: UAT

Navigate to “My Computer” > press F1 > observe that ‘nothing happens’ as intended.

Note:

Please be advised that this does not work on Windows 10 as the registry location for the help file has been changed in that newer OS.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: How to Install Remote Desktop Services

Prerequisites: Required ports for RDS Services- UDP/TCP 135 ingress/egress- UDP/TCP 137-139 ingress/egress- TCP 445 ingress/egress-…

PowerShell: Maintain Windows Services Remotely via WinRM

# maintainServices.ps1 # FQDN of each computer name (required) $computerList=@' testWindows.intranet.kimconnect.com testWindows.dmz.dragoncoin.com '@ $serviceNames=@( 'windows_exporter',…

PowerShell: Quickly Test Connectivity from a List of Sources toward a Destination on a Specific Port

# testRemotePort.ps1 $connectFrom=@' windows1 windows2 '@ $connectTo=@' \\servername\sharename '@ $testPort=445 $sources=@($connectFrom -split "`n")|%{$_.Trim()} $destinations=@($connectTo -split…