How to reset the Windows Start Menu

Neemobeer

Windows Forum Team
Staff member
*UPDATE - 12/05/2019* -- I rewrote the code to handle the appx package name changes.

*UPDATE - 04/14/2019* -- I'm updated the code to make it more reliable and to simply the instructions

This tutorial will help you reset the Start Menu if you are experiencing issues such as it won't load at all or the icons appear faded.
  • Press [Windows key + r]
  • Type powershell in the run box and press enter
  • Copy everything from the "Code" section below and paste into the Powershell prompt and hit enter
* Window explorer (start button and task bar should disappear and come back on it's own) if it does not come back press [windows key + r] and type explorer and press enter*

Code:
# Need to stop explorer since it keeps an open handle to the appx package setting directory
Taskkill /F /IM explorer.exe
Start-Sleep -Milliseconds 500

# Collect package details
$PackagesDirctroy = "$($env:LOCALAPPDATA)\Packages\"
$SEHPackage = Get-AppxPackage -Name "*ShellExperienceHost*"

if(-not($SEHPackage))
{
    Write-Host "Unable to locate the package, try changing the text after -Name" -ForegroundColor Red
    Pause
    Exit
}

$SEHPackageFullName = $SEHPackage.PackageFullName
$SEHPackageManifest = "$($SEHPackage.InstallLocation)\AppxManifest.xml"
$UserSEHPackageSettingsDirectory = "$PackagesDirctroy$SEHPackageFullName"

# Rename settings directory and re-register the package
Rename-Item $UserSEHPackageSettingsDirectory -NewName "$SEHPackageFullName.bak" -Force
Add-AppPackage -Path $SEHPackageManifest -Register -DisableDevelopmentMode

#Restart explorer
Start-Process explorer.exe
Test your Start Menu.
 
Last edited:

pete20000

New Member
To run it with the .\ you need to be in the same directory or type the full path.
Got following errors:

Rename-Item : Access to the path
'C:\Users\Administrator\AppData\Local\Packages\Microsoft.Windows.ShellExperienceHost_cw5n1h2txyewy' is denied.
At line:1 char:1
+ Rename-Item "$($env:Userprofile)\AppData\Local\Packages\Microsoft.Win ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\Users\Admini...t_cw5n1h2txyewy:String) [Rename-Item], IOException
+ FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand
 
Top