How to Fix Xbox App Error 0x80070005 in Windows 11

Attempting to download, install, or update PC Game Pass titles through the Xbox app on Windows 11 only to be stopped by the error code 0x80070005 is a widely documented headache for PC gamers. This specific hexadecimal code translates in Windows NT architectures to ERROR_ACCESS_DENIED. It indicates that the Xbox app or its companion background service, Microsoft Gaming Services, attempted to write game installation packages to your storage drive but was blocked by missing file system permissions. Whether you are installing a major release or applying a routine game patch, resolving error 0x80070005 requires resetting permissions on the system’s hidden installation directories, repairing Gaming Services, or re-registering Windows Store components.

What Causes Xbox App Error 0x80070005?

Modern Windows 11 PC Game Pass games install inside encrypted container directories protected by strict Access Control Lists (ACLs). Access is rejected due to:

  • Corrupted WindowsApps and WpSystem Folder Permissions: Moving game installations across internal drives or reinstalling Windows altering ownership of the hidden WindowsApps directory.
  • Damaged Microsoft Gaming Services Installation: The core background drivers (xvdd.sys and gamingflt.sys) falling out of synchronization with Windows Security.
  • Corrupted Microsoft Store Local Cache: Stale license verification tokens preventing the Xbox client from validating your active Game Pass subscription credentials.
  • Third-Party Antivirus File Locks: Real-time anti-malware scanners actively blocking the virtual drive creation routines used by Game Pass.

Step 1: Reinstall Microsoft Gaming Services via PowerShell

A damaged Gaming Services package is the primary culprit behind 0x80070005 errors. Reinstalling it through elevated PowerShell commands restores correct system privileges.

  1. Press Windows Key + S, type powershell, right-click Windows PowerShell, and select Run as administrator.
  2. In the PowerShell terminal, paste the following command to completely uninstall the Gaming Services package:
    get-appxpackage Microsoft.GamingServices | remove-AppxPackage -allusers
  3. Press Enter to execute the command.
  4. Next, paste the following command to trigger a fresh download from the Microsoft Store:
    start ms-windows-store://pdp/?productid=9MWPM2CQNLHN
  5. Press Enter. The Microsoft Store will automatically open to the Gaming Services page.
  6. Click Install or Get and allow the package to install completely.
  7. Restart your computer and launch the Xbox app to retry your game download.

Step 2: Reset Xbox App and Microsoft Store via Windows Settings

Resetting both applications clears corrupted cache manifests without affecting your installed game files.

  1. Open Settings on Windows 11 (press Windows Key + I).
  2. In the left sidebar, click Apps > Installed apps.
  3. Scroll down to Xbox, click the three-dot menu on the right, and select Advanced options.
  4. Click Repair, wait a moment, and then click Reset.
  5. Return to the Installed apps list, find Microsoft Store, click Advanced options, and perform the same Repair and Reset process.
  6. Also run the Store reset executable: Press Windows Key + R, type wsreset.exe, and press Enter. A blank console will open and close automatically when finished.

Step 3: Fix Permissions on the .GamingRoot Directory

If you install games to a secondary hard drive or SSD (e.g. D:\ or E:\), Windows creates a .GamingRoot file and a WindowsApps directory. If permissions are restricted, the Xbox app cannot write files.

  1. Open File Explorer and navigate to the drive where your games are installed.
  2. Click the View menu at the top, select Show, and ensure Hidden items is ticked.
  3. Right-click the WindowsApps folder and select Properties.
  4. Switch to the Security tab and click Advanced.
  5. Next to Owner:, click Change. Type Administrators in the box, click Check Names, and click OK.
  6. Tick the box labelled Replace owner on subcontainers and objects.
  7. Click Apply, wait for permissions to apply across all directories, and click OK.

Step 4: Change Default Storage Drive in Windows Settings

Ensuring Windows app installation defaults align with your Xbox app target drive prevents cross-volume privilege errors.

  1. Open Settings > System > Storage.
  2. Click Advanced storage settings to expand the section.
  3. Click Where new content is saved.
  4. Under New apps will save to:, select your preferred installation drive from the drop-down menu and click Apply.
  5. Open the Xbox app, navigate to Settings > Install options, and set the default installation folder to match.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.