Add a Refresh option to the right‑click context menu in Windows

Open PowerShell as Administrator and run the command below, or copy it into Notepad, save the file as a .ps1, and run it as Administrator.

# Restore classic context menu in Windows 11
# Creates HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32 with empty default value

# Ensure we're in PowerShell
$ErrorActionPreference = 'Stop'

# Registry path and GUID
$basePath = 'HKCU:\Software\Classes\CLSID'
$guid     = '{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}'
$inproc   = Join-Path -Path (Join-Path $basePath $guid) -ChildPath 'InprocServer32'

# Create the keys if they don't exist
if (-not (Test-Path (Join-Path $basePath $guid))) {
    New-Item -Path $basePath -Name $guid | Out-Null
}
if (-not (Test-Path $inproc)) {
    New-Item -Path (Join-Path $basePath $guid) -Name 'InprocServer32' | Out-Null
}

# Set the (Default) value to empty string
# Using .NET to set the unnamed default value
New-ItemProperty -Path $inproc -Name '(Default)' -Value '' -PropertyType String -Force | Out-Null

# Restart Explorer to apply changes
Write-Host 'Restarting Windows Explorer...'
Get-Process explorer -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue
Start-Process explorer.exe

Write-Host 'Done. The classic context menu should now appear.'

If you want the PS script,
https://github.com/ayeshsherman/right-click-context-menu-in-Windows.git

Leave a comment