Click here to Skip to main content
15,885,278 members
Articles / Programming Languages / PowerShell

Critical Error – Start Menu and Cortana Aren’t Working

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
10 Jan 2016CPOL 9.9K   31  
Critical Error – Start Menu and Cortana aren’t working

Introduction

In the middle of December of 2015, I got a message informing me that Cortana and Start Menu of my Windows 10 stopped working. The message looked as follows:

So, after a couple of minutes, I found a solution, but I have to apply it in several steps:

  1. The commandlet sequence must be executed with elevated rights.
  2. The following script doesn't run as expected on my machine:
PowerShell
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode 
	-Register "$($_.InstallLocation)\AppXManifest.xml"}
And a simple solution turned into a sophisticated one. Unfortunately, I don't remember all the errors that occured during scripts execution, but the thing is... a variable $_.InstallLocation was undefined. So, I rewrote script as follows:
PowerShell
   $manifest=(Get-AppxPackage Microsoft.WindowsStore).InstallLocation + '\AppxManifest.xml'
   Get-AppXPackage -AllUsers | Foreach {
      Add-AppxPackage -DisableDevelopmentMode -Register $manifest
   }
Finally it worked. So I restarted my computer and noticed that Start Menu is working. I almost forgot about this error 'til a day before yesterday: it happened again! I just gather all the commands in one script and placed it on the desktop. So if one might find it useful, I attach an archive of the script.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
Russian Federation Russian Federation
Since the middle of 90-s when I was able to deal only with ZX Spectrum, I became addicted to programming. It was a strange path from Sinclair Basic through old-school Fortran, C and C++ to C# and SQL.

I fond of Microsoft technologies but also interested in Linux development. I like to learn new technologies, patterns and techniques and gladly share with my experience to others.

If you wish to contact with me feel free to write down a message through any of social network.

Comments and Discussions

 
-- There are no messages in this forum --