I originally posted this in Microsoft's Windows 10 forum. After going back and forth with them, they have referred me here.
I recently changed my Microsoft password. Doing so caused the Xbox app to have an aneurysm; it gave me the Sign in and Cancel (?) buttons, then immediately presented me with a Microsoft login form, without clicking on the Sign In button. I entered my credentials, only to have it then present me with the two buttons again (which were just sitting behind the login screen, apparently). So, I clicked Sign In, and entered my credentials again. Crash to desktop. Open the app again. Immediate crash to desktop. Restart computer, open app - immediate crash to desktop.
I then uninstalled the app via Powershell with
Get-AppxPackage *xboxapp* | Remove-AppxPackage
and this is where I am. I cannot use the all-encompassing reinstall line
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
because it gives me an error about Cortana needing to be closed (even after a fresh restart, and manually enabling and disabling it; the error is further down this post). I found another thread with these instructions from a Microsoft Forum Moderator concerning this Cortana/Powershell issue, but it didn't help (http://answers.microsoft.com/en-us/windows/forum/windows_10-win_cortana/cortana-does-not-work/5a8aff47-3f56-4f3a-a379-4629864f76ca?auth=1):
Please follow the steps and check if it helps:
- Open an Administrator CMD window. If you can’t find a way, use these steps:
- Press CTRL+Shift+ESC to open Task Manager.
- Click File > Run New Task
- Make sure you have a check mark beside “Create this task with administrative privileges”
- Type CMD
Type the following commands at the CMD prompt:
dism /online /cleanup-image /restorehealth
- If the above command both completed and show no remaining issues, run these commands:
powershell
Get-AppXPackage -AllUsers |Where-Object {$_.InstallLocation -like "*SystemApps*"} | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
The DISM command runs fine. The powershell command results in the same error:
Add-AppxPackage : Deployment failed with HRESULT: 0x80073D02, The package could not be installed because resources it
modifies are currently in use.
error 0x80004004: Unable to install because the following apps need to be closed
Microsoft.Windows.Cortana_cw5n1h2txyewy!CortanaUI.
Using the command to install an individual app with the install location either doesn't work, or the app I want is not the "Xbox companion" app (in which case, I don't know what app it could be; it's not the Smartglass app, that one works fine). The command runs without an error, but nothing changes; the app is not in my list of programs/"All apps".
I also attempted to use the reinstall-preinstalledApps.ps1 script as detailed on Microsoft's site (https://msdn.microsoft.com/en-us/library/windows/hardware/mt185364%28v=vs.85%29.aspx), but that process did not solve my problem, as I get a string of these errors when running the script with no arguments (one for each app it attempts):
Add-AppxPackage : Cannot find path 'C:\Program
Files\WindowsApps\Microsoft.XboxApp_2015.1117.445.0_neutral_~_8wekyb3d8bbwe\AppxMetadata\AppxBundleManifest.xml'
because it does not exist.
At C:\users\lou\desktop\reinstall-preinstalledApps.ps1:35 char:2
+ Add-AppxPackage -register $PackagePath -DisableDevelopmentMode
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Program File...dleManifest.xml:String) [Add-AppxPackage], ItemNotFou
ndException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand
Help, please. I'd like my Xbox app back.
===================================
http://answers.microsoft.com/en-us/windows/forum/windows_10-update/uninstalled-xbox-app-via-powershell-cannot/f0f77a27-338e-4dae-aa16-bcaae798af33
That was the original post. Attempted/unsuccessful solutions, per moderator instruction:
1. Running this command at a prompt: "powershell -ExecutionPolicy Unrestricted Add-AppxPackage -DisableDevelopmentMode -Register $Env:SystemRoot\WinStore\AppxManifest.xml"
2. Creating a new user account to look for the app (it wasn't there, either)
3. Running sfc /scannow (didn't find any violations)