OneDrive error codes point to different problems. The good thing is that knowing the error you are dealing with helps you apply effective solutions.

If you rely on OneDrive for day-to-day work and other activities, you’ll no doubt be frustrated by even the slightest glitch. The 0x8004dedc error is one of those minor problems that can be resolved by applying one or two tweaks. It indicates that you’re trying to use OneDrive in a location where you’re not meant to use the service.

The error is a geolocation problem, and it tends to happen to people who use OneDrive for work or school. That means, using a OneDrive account outside its intended premises or region could trigger the error.

In some cases, users report seeing the error despite being where they should be. We’ll show you different fixes that will help you get rid of the problem.

Move the OneDrive account to the intended location through PowerShell

You have to be logged in to your computer as an administrator to apply this fix. The command involved allows you to move a user account to another geolocation. This comes in handy when someone is moving to another location for work or school. This way, they get to continue using their OneDrive account.

Here’s what you have to do:

  1. Right-click on the Windows logo in the taskbar (Start button) or use the Win + X keyboard shortcut to summon the Power User menu.
  2. Once you see the menu, click on Windows PowerShell (Admin).
  3. Click on Yes when the User Account Control dialog opens.
  4. After the PowerShell window appears, type the following line and hit the Enter key:

Start-SPOUserAndContentMove -UserPrincipalName <UserPrincipalName> -DestinationDataLocation <DestinationDataLocation>

Note: <UserPrincipalName> and <DestinationDataLocation> are placeholders that should be replaced with the UPN (usually the email address) of the user whose account is being moved and the geolocation where the account is being moved to respectively.

  1. You can use the following command to check the available geolocations where you can move content to:

Get-SPOGeoMoveCrossCompatibilityStatus

Turn off your proxy settings

If you use a proxy server to gain access to a service not available in your country or to protect your privacy, this could be the reason you see the error message. You should turn off your proxy settings and check if doing that has resolved the problem.

Follow these steps:

  1. Tap Win + I on your keyboard to launch Settings. Right-clicking the Start button and selecting Settings will also launch the app.
  2. Once the Settings app shows up, click on Network & Internet.
  3. Go to the left side of the Network & Internet window and click on Proxy.
  4. Head to the proxy page to turn off your proxy settings.

Make sure you also disable your VPN if you’re using a VPN connection.

Conclusion

You should now be able to use OneDrive in your preferred location. You can ask questions and share your ideas in the comments section below.

If you want to keep your system running at its best performance, you have to get rid of broken and unneeded registry keys and junk files. They can eat into your CPU resources and cause annoying system slowdowns. To keep them away from your computer, you need a dedicated program like Auslogics BoostSpeed. It comes with different tools, including a registry cleaner, that help keep your system safe and fast.