Getting an Error with PowerShell Command – Need Help!

0
10
Asked By ChillPineapple99 On

Hey everyone! I was trying to run a PowerShell command to reinstall some apps, and I'm running into an error. The command I used is: `Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)AppXManifest.xml"}`. However, I got the error message that says: 'Deployment failed with HRESULT: 0x80073D02, The package could not be installed because resources it modifies are currently in use.' It mentions that I need to close some apps, specifically Microsoft Notepad and Microsoft Gaming Services (with their respective versions). Did anyone encounter this issue before, and how did you fix it?

4 Answers

Answered By FriendlyNeighb0r On

Try using `Get-AppxPackage *windows.immersivecontrolpanel* | Reset-AppxPackage`. Sometimes, that can resolve issues without needing to mess with the entire package. Let me know how it goes!

LetMeHelpU -

It didn’t work for what I needed, sadly.

Answered By SillyGoose42 On

It looks like you're using a pretty common command that's often suggested online. But be careful—sometimes it's not the best method. Have you tried closing Notepad and Gaming Services before running the command again? That might solve the issue. Just make sure those apps aren't running in the background!

CuriousCoder01 -

I don’t have them open, but I’ll check again!

Answered By MetaTechGuy On

You might want to run your PowerShell as an administrator if you haven’t already. Make sure your session is elevated because some commands won't work properly without that access. What response do you get when trying that while closing unwanted applications?

InsideJokes123 -

I’m running it elevated already; maybe there’s another command I can use?

Answered By TechSavvy123 On

Formatting your code better can really help us help you! Make sure you're using PowerShell's proper syntax, like using backticks for inline code. For instance: `Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)AppXManifest.xml"}`. Besides that, what exactly are you trying to fix with that command? It’s not always effective for all apps.

DazedAndConfused -

I was just trying to reinstall the settings app; do you think there's another way?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.