Windows10Debloater icon indicating copy to clipboard operation
Windows10Debloater copied to clipboard

microsoft store is unavailable after debloating on an alternate user

Open taufox opened this issue 5 years ago • 27 comments

I have been using this script since a couple of months an i never had a problem with it, i really love it. I never used more than one account on my previous installations and now that i try it it seem that if i use the script before creating another user the microsoft store app and some other windows app are nowhere to be found, even after using the "Fix Whitelisted Apps" option on the GUI. I hope you guys can help me and have a good day in advance.

taufox avatar May 05 '19 01:05 taufox

Try running below in PowerShell as the affected user (must be administrator): Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

arunas111 avatar May 05 '19 23:05 arunas111

Try running below in PowerShell as the affected user (must be administrator): Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

@arunas111 Do you recommend doing this for every profile that gets created? In our enterprise domain we have users traveling between offices and they don't have an assigned PC. It might be problematic for us to run the script on individual systems/profiles company wide. Any other way to work around that?

tejpartapg avatar May 15 '19 15:05 tejpartapg

Hello this fixed my issue. Had a firewall issue as well I just ran the Firewall Diag tool from microsoft and it fixed it.

Is it possible to add a windows store fix?

I use this tool for my org as well but it removes the windows store. Sometimes some users need specific apps from the store to do their job. I am unable to restore the store sometimes.

Thank you for all the hard work you do on this tool you rock.

Faty100 avatar May 15 '19 18:05 Faty100

I'm also having the issue that windows store is not available anymore. Running Get-AppxPackage -allusers Microsoft.WindowsStore returns no result. I'm clueless on how to reinstall the store.

Pasukaru avatar May 18 '19 11:05 Pasukaru

The same has happened for me.

Removed the store and can't get it back. Did some deep googling and tried the commands listed above, including Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} and have had no luck getting it restored. After entering the command listed above I received no Powershell output as a result.

Love the tool, but this is a pretty big issue as I can't re-install the Nvidia control panel without the MS Store.

thefacesblur avatar May 18 '19 18:05 thefacesblur

Hey,

After using it, I got the same problem, Microsoft Store isn't on my computer for now... I used it to play Forza Horizon 4 and hearing songs on Soundcloud and now I can't use it anymore :c

I tried many things to fix it, using "wsreset.exe", multiple scans with cmd (DISM and SFC) and commands to restore AppxPackage with Powershell, it seems like the appmanifest isn't existing anymore.

Also used multiple windows assistance on settings "resolve problems with applications of Windows Store"

I tried to create another account on PC to check if this new one can have access to the app pack.

I even tried on the safe mod all that things...

And finally, I tried to restore from old images, and it failed... Seems like the data is now corrupted (0x8007045b).

Here is some ways to fix it, didn't worked with me but still, you can try.

https://www.intowindows.com/how-to-reinstall-store-and-other-preinstalled-apps-in-windows-10/ https://youtu.be/kqMayVWBA5s https://www.youtube.com/watch?v=EQo53hvWy8Q https://answers.microsoft.com/en-us/windows/forum/all/appmanifestxml-lost/9594063a-b910-4b55-a2c8-bc1a83523308

You can find below and on my screens the multiple errors I got from searching ways to fix it.


Add-AppxPackage: Deployment failed with HRESULT: 0x80073D02, Can not install package because resources it modifies are currently in use. error 0x80073D02: Unable to install because the following applications must be closed Microsoft.Windows.ShellExperienceHost_10.0.17134.112_neutral_neutral_cw5n1h2txyewy. NOTE: For additional information, search for [ActivityId] 7a16c5ad-0f1e-0002-e9d2-167a1e0fd501 in the event log or use the command line Get-AppxLog -ActivityID 7a16c5ad-0f1e-0002-e9d2-167a1e0fd501 At C character: \ Users \ User \ Documents \ Windows10Debloater \ Windows10DebloaterGUIOLD.ps1: 542: 46 + ... | ForEach {Add-AppxPackage -Verbose -DisableDevelopmentMode -Register ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo: NotSpecified: (C: \ Windows \ System ... ppXManifest.xml: String) [Add-AppxPackage], Exception + FullyQualifiedErrorId: DeploymentError, Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand


Add-AppxPackage: Can not find path "C: \ windows \ WinStore \ AppxManifest.xml" because it does not exist. To the line character: 1: 1

  • Add-AppxPackage -DisableDevelopmentMode -Register $ Env: SystemRoot \ Win ... +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~      + CategoryInfo: ObjectNotFound: (C: \ windows \ WinStore \ AppxManifest.xml: String) [Add-AppxPackage], ItemNot     FoundException      + FullyQualifiedErrorId: PathNotFound, Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

222 111 1111


Thank you anyway, hope it helps...

Dodkil avatar May 20 '19 17:05 Dodkil

I had the same problem. Tried everything to get the store back, but no joy so had to factory reset from a USB. Even doing a hard reset from the setting menu didn't get it back! Luckily I ran it on a brand new laptop so didn't lose anything, other than my time!

warrenit avatar May 20 '19 18:05 warrenit

I have experienced exactly the same as @warrenit. Reset did not bring it back. Only the full reinstall from USB worked.

Pasukaru avatar May 20 '19 18:05 Pasukaru

Hey,

I found a solution, you have to access that apps folder, here is a tutorial that explains how

https://www.thewindowsclub.com/windows-8-metro-apps-folder-location

Once you got the access, you need to take the access to that folders right below :

-MovedPackages -DeletedAllUserPackages -Deleted

Copy all the packages you'll find in to WindowsApps

Do the same thing with :

-SharedLimitedTime

In that last one, you will find "InfusedApps", In that folder you will find three folders :

-Applications -Frameworks -Packages

(tip : you can save time by copy InfusedApp somewhere else to clear the content more easily without security remake)

Just don't mind and copy all the content in Windows Apps

Restart the PC and try to find your Microsoft Store on search bar, if it doesn't work, you will find your heaven with that other tutorial that will apply the apps to your PC with PowerShell.

https://www.askvg.com/guide-how-to-reinstall-all-default-built-in-apps-in-windows-10/ https://www.askvg.com/guide-how-to-remove-all-built-in-apps-in-windows-10/

Dodkil avatar May 20 '19 18:05 Dodkil

Hello All,

I may have found a work around if not a fix. If you guys would like to try something different or new, you could run the following steps and see if that works out for you. i. Run Set-ExecutionPolicy Unrestricted -Force in PowerShell (Run as Administrator, if not using built in 'Administrator' account). ii. Right click Windows10SysPrepDebloater.ps1 and choose edit. iii. In the powershell editor remove/comment (also see screen shot) inside Begin-SysPrep():
#Stop WindowsStore Installer Service and set to Disabled Write-Verbose -Message ('Stopping InstallService') Stop-Service InstallService DebloatSyPrep

iv. Save the changes and execute .\Windows10SysPrepDebloater.ps1 -SysPrep -Debloat

NOTE: In my case the above script didn't uninstall OneDrive, Paint 3D, disable Cortana and remove people icon from taskbar. To remedy the Cortana issue, I ended up disabling it through Local Group Policy: Computer Configuration>Administrative Templates>Windows Components>Search and then Disabled "Allow Cortana".

You will also notice that not all bloatware apps get removed in the initial profile you run the Debloat script in. The new profiles you create should indeed have all those apps removed.

Please do post your findings here, may be someone else can come up with a better approach.

tejpartapg avatar May 20 '19 21:05 tejpartapg

after some testing I found this line of the code to be the cause of new profiles not having the App Store.

image

It is not allowing the remaining apps that were not deleted to be installed on new profiles. After setting this value back to 1 I restarted and logged in with a new user and that new user did have the App Store and Sticky Notes and Calculator.

User profiles that were already created before changing the reg key back to 1 still did not have the App Store so I just had to recreate those profiles.

osmelestrada avatar May 24 '19 18:05 osmelestrada

Same for me, windows store removed and ran Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} without success

CapitaineJSparrow avatar Jun 11 '19 09:06 CapitaineJSparrow

I think I figured out what is causing the Store app to get removed. A commit back in March changed the verbiage in the DebloatAll function.

The current code looks like this:

    Get-AppxPackage -AllUsers | Where {$_.Name -NotMatch $WhitelistedApps -and $_.Name -NotMatch $NonRemovable} | Remove-AppxPackage
    Get-AppxPackage | Where {$_.Name -NotMatch $WhitelistedApps -and $_.Name -NotMatch $NonRemovable} | Remove-AppxPackage
    Get-AppxProvisionedPackage -Online | Where {$_.Name -NotMatch $WhitelistedApps -and $_.Name -NotMatch $NonRemovable} | Remove-AppxProvisionedPackage -Online

The verbiage from commits previous to the March commit looked like this:

    Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $WhitelistedApps -and $_.Name -NotMatch $NonRemovable} | Remove-AppxPackage
    Get-AppxPackage | Where-Object {$_.Name -NotMatch $WhitelistedApps -and $_.Name -NotMatch $NonRemovable} | Remove-AppxPackage
    Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -NotMatch $WhitelistedApps -and $_.PackageName -NotMatch $NonRemovable} | Remove-AppxProvisionedPackage -Online

Specifically using Where-Object instead of Where overall and $_.PackageName instead of $._Name for Get-AppxProvisionedPackage Once I made the changes to my local copy of the script it stopped removing the Microsoft Store app.

jhaynesSITS avatar Jun 13 '19 17:06 jhaynesSITS

Okay first off, this broke the store. I still have it. I just can't download anything because it gives a vague error message. Second off, why does this remove the nvidia control panel, exactly? Why is that a thing? Does anyone have any fixes to this fucking up my store so I can actually add back my graphics control settings?

Mitchell128134 avatar Jun 21 '19 19:06 Mitchell128134

I just found the end all of fixes. No dependencies needs. the Get-Appx stuff is to install the store from the WindowsApps folder which this script removes. this script bundled the appx's https://github.com/kkkgo/LTSB-Add-MicrosoftStore because it is meant to be used on Windows 10 LTSC which doesnt have it, but it also reinstalls the store since it wasnt previously on it. Hope this helps

RainbowTabitha avatar Oct 22 '19 19:10 RainbowTabitha

I just found the end all of fixes. No dependencies needs. the Get-Appx stuff is to install the store from the WindowsApps folder which this script removes. this script bundled the appx's https://github.com/kkkgo/LTSB-Add-MicrosoftStore because it is meant to be used on Windows 10 LTSC which doesnt have it, but it also reinstalls the store since it wasnt previously on it. Hope this helps

This totaly worked for my!!!!!!!! Thank you. You are my hero!!!!

oameye avatar Nov 11 '19 11:11 oameye

I just found the end all of fixes. No dependencies needs. the Get-Appx stuff is to install the store from the WindowsApps folder which this script removes. this script bundled the appx's https://github.com/kkkgo/LTSB-Add-MicrosoftStore because it is meant to be used on Windows 10 LTSC which doesnt have it, but it also reinstalls the store since it wasnt previously on it. Hope this helps

Worked!!!! Was looking for those file after realizing that all the other solutions won't work. Thanks!

nimrodgans avatar Dec 28 '19 01:12 nimrodgans

@CrankySupertoon - thank you! Your solution worked for me too after Sycnex debloater removed Microsoft Store.

Since most other sites suggest a reinstall of Win10 is required to restore the MS Store, how about adding to docs with warning about MS Store being removed, and linking to this workaround?

I have used this kkkgo LTSB-Add-MicrosoftStore tool before (so that LTSC Win10 could install WSL), and I think it's a pretty good option compared to a full reinstall.

@Sycnex - Since the docs for LTSB-Add-MicrosoftStore are not very clear, I'd suggest adding something like text below to top-level README.md.

  • I'm happy to do a PR on the docs if this sounds OK

Workaround: if Microsoft Store app is removed

Due to an open issue, Windows10Debloater may uninstall the Microsoft Store app.

To re-install the Microsoft Store app, try this - not officially supported by Microsoft but seems to work:

  • download and unzip the latest release from https://github.com/kkkgo/LTSB-Add-MicrosoftStore/archive/master.zip
  • start cmd.exe or PowerShell as administrator
  • cd into LTSB-Add-MicrosoftStore-master
  • run Add-Store.cmd
  • ignore any messages about newer versions being installed, these seem to be harmless
  • search for the Microsoft Store app and run it

rdonkin avatar Jan 12 '20 15:01 rdonkin

I just found the end all of fixes. No dependencies needs. the Get-Appx stuff is to install the store from the WindowsApps folder which this script removes. this script bundled the appx's https://github.com/kkkgo/LTSB-Add-MicrosoftStore because it is meant to be used on Windows 10 LTSC which doesnt have it, but it also reinstalls the store since it wasnt previously on it. Hope this helps

Won't work for me.

ljcool2006 avatar Feb 19 '20 22:02 ljcool2006

Won't work for me.

The fix didn't work for me too initially. Did you try running:

PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage Microsoft.WindowsStore).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}"

And rebooting? That made it work for me finally.

syedrali avatar Feb 21 '20 11:02 syedrali

I just found the end all of fixes. No dependencies needs. the Get-Appx stuff is to install the store from the WindowsApps folder which this script removes. this script bundled the appx's https://github.com/kkkgo/LTSB-Add-MicrosoftStore because it is meant to be used on Windows 10 LTSC which doesnt have it, but it also reinstalls the store since it wasnt previously on it. Hope this helps

Thank You, I was looking for the solutions for days now.

KavetiSaiKumar avatar Apr 23 '20 20:04 KavetiSaiKumar

@CrankySupertoon - thank you! Your solution worked for me too after Sycnex debloater removed Microsoft Store.

Since most other sites suggest a reinstall of Win10 is required to restore the MS Store, how about adding to docs with warning about MS Store being removed, and linking to this workaround?

I have used this kkkgo LTSB-Add-MicrosoftStore tool before (so that LTSC Win10 could install WSL), and I think it's a pretty good option compared to a full reinstall.

@Sycnex - Since the docs for LTSB-Add-MicrosoftStore are not very clear, I'd suggest adding something like text below to top-level README.md.

  • I'm happy to do a PR on the docs if this sounds OK

Workaround: if Microsoft Store app is removed

Due to an open issue, Windows10Debloater may uninstall the Microsoft Store app.

To re-install the Microsoft Store app, try this - not officially supported by Microsoft but seems to work:

  • download and unzip the latest release from https://github.com/kkkgo/LTSB-Add-MicrosoftStore/archive/master.zip
  • start cmd.exe or PowerShell as administrator
  • cd into LTSB-Add-MicrosoftStore-master
  • run Add-Store.cmd
  • ignore any messages about newer versions being installed, these seem to be harmless
  • search for the Microsoft Store app and run it

This worked for me

esarearthur avatar Jul 17 '20 08:07 esarearthur

For anyone having an issue with windows store after applying the fix where the get button doesn't do anything and just refreshes the app page, click on your user image on the top right corner in the store app and logout then log back in

foggysteam avatar Sep 07 '20 21:09 foggysteam

For anyone having an issue with windows store after applying the fix where the get button doesn't do anything and just refreshes the app page, click on your user image on the top right corner in the store app and logout then log back in

for 2 hours i couldn't install alarm for windows. until i found you and i died laughing at microsoft 😂😂 you saved my life

DanielHemmati avatar Sep 28 '20 11:09 DanielHemmati

For me, I realised that my "Microsoft Account Sign-in Assistant" service was completely disabled, since I also couldn't log into my Microsoft Account via Store and other apps. Just reenable the service after you have reinstalled Microsoft Store and you're good to go. To reenable the service, click your windows key, search "Services", open that, find "Microsoft Account Sign-in Assistant" or similar, and right click it and go to properties. Then, just change the startup from "DIsabled" to "Automatic" or anything of the like. I just use automatic since I ain't no expert.

MoonTidez avatar May 18 '21 07:05 MoonTidez

I just found the end all of fixes. No dependencies needs. the Get-Appx stuff is to install the store from the WindowsApps folder which this script removes. this script bundled the appx's https://github.com/kkkgo/LTSB-Add-MicrosoftStore because it is meant to be used on Windows 10 LTSC which doesnt have it, but it also reinstalls the store since it wasnt previously on it. Hope this helps

This Helped me so much

AryxPlayz avatar Apr 04 '22 09:04 AryxPlayz

@CrankySupertoon - thank you! Your solution worked for me too after Sycnex debloater removed Microsoft Store. Since most other sites suggest a reinstall of Win10 is required to restore the MS Store, how about adding to docs with warning about MS Store being removed, and linking to this workaround? I have used this kkkgo LTSB-Add-MicrosoftStore tool before (so that LTSC Win10 could install WSL), and I think it's a pretty good option compared to a full reinstall. @Sycnex - Since the docs for LTSB-Add-MicrosoftStore are not very clear, I'd suggest adding something like text below to top-level README.md.

  • I'm happy to do a PR on the docs if this sounds OK

Workaround: if Microsoft Store app is removed

Due to an open issue, Windows10Debloater may uninstall the Microsoft Store app. To re-install the Microsoft Store app, try this - not officially supported by Microsoft but seems to work:

  • download and unzip the latest release from https://github.com/kkkgo/LTSB-Add-MicrosoftStore/archive/master.zip
  • start cmd.exe or PowerShell as administrator
  • cd into LTSB-Add-MicrosoftStore-master
  • run Add-Store.cmd
  • ignore any messages about newer versions being installed, these seem to be harmless
  • search for the Microsoft Store app and run it

This worked for me

This also helped me

AryxPlayz avatar Apr 04 '22 09:04 AryxPlayz