Uninstalled Xbox app via Powershell, cannot reinstall

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:

  1. Open an Administrator CMD window.  If you can’t find a way, use these steps:
    1. Press CTRL+Shift+ESC to open Task Manager.
    2. Click File > Run New Task
    3. Make sure you have a check mark beside “Create this task with administrative privileges”
    4. Type CMD

Type the following commands at the CMD prompt:
    dism /online /cleanup-image /restorehealth

 

  1. 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)

 

Question Info


Last updated July 3, 2018 Views 576 Applies to:

Hi Lou, Sorry to hear your having issues reinstalling the Xbox App. I have reported your issue to the developers to investigate. We will contact you if we have further questions.

Thanks,

Best

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Thank you for your response.  Is someone going to contact me outside this forum (say, via e-mail) to remedy this, or should I just be watching here for that?

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Hey there,

They will more then likely report back to this post here for you :)

I have taken a look at the thread on the Microsoft community, and have marked the Support Engineers response to direct you as answer. I have also posted a message detailing that this issue is been looked into by the developers, and detailed that this has been escalated by the support staff on this community.

Hope you get this problem sorted out :)

Regards,

Volunteer Moderator | Xbox Ambassador | Article Author | Windows & Xbox Insider

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Hey there,

They will more then likely report back to this post here for you :)

I have taken a look at the thread on the Microsoft community, and have marked the Support Engineers response to direct you as answer. I have also posted a message detailing that this issue is been looked into by the developers, and detailed that this has been escalated by the support staff on this community.

Hope you get this problem sorted out :)

Regards,

Where can I find the solution to this problem? I have the same problem but it looks like solution has never been posted. HELP :(

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Thank you for your response.  Is someone going to contact me outside this forum (say, via e-mail) to remedy this, or should I just be watching here for that?

Did you ever figure it out? I have the exact same problem.

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.