Windows10Debloater
Windows10Debloater copied to clipboard
microsoft store is unavailable after debloating on an alternate user
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.
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"}
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?
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.
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.
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.
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
Thank you anyway, hope it helps...
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!
I have experienced exactly the same as @warrenit. Reset did not bring it back. Only the full reinstall from USB worked.
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/
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
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.
after some testing I found this line of the code to be the cause of new profiles not having the App Store.
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.
Same for me, windows store removed and ran Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
without success
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.
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?
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
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!!!!
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!
@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
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.
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.
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.
@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
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 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
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.
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
@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