Skip to content
LogoTechnipages
LogoTechnipages
  • Topics
        • Android
        • Browsers
        • Gaming
        • Hardware
        • Internet
        • iPhone
        • Linux
        • macOS
        • Office
        • Reviews
        • Software
        • Windows
        • Definitions
        • All Recent Posts
  • Product Reviews
  • About

Windows 10: An Error Occurred While Creating the Directory

Madalina DinitaJune 18, 2021 Comments (0)
fix-error-occurred-while-creating-directory-windows-10

When you install a new program, your Windows 10 computer automatically creates a new program directory. The default location for new programs is C:\Program Files unless you instruct your computer otherwise. But sometimes, Windows 10 may fail to create the directory for the program you’re trying to install. When this issue occurs, the following error message usually pops up on the screen: “An error occurred while attempting to create the directory.” Let’s see how you can fix this problem.

Contents

  • 1 What to Do If an Error Occurred While Creating the Directory
    • 1.1 Use an Admin Account
    • 1.2 Create a New Admin Profile
    • 1.3 Disable Controlled Folder Access
    • 1.4 Disable Your Antivirus and Firewall
    • 1.5 Conclusion

What to Do If an Error Occurred While Creating the Directory

Use an Admin Account

Make sure to use an administrator account when installing new programs on Windows 10. Guest or local user accounts may not have the necessary permission to install new apps and programs.

Create a New Admin Profile

If you’re already using an admin account, try creating a new local admin account. Maybe your current profile got corrupted.

  1. Go to Settings, click on Accounts, and select Family & other users.
  2. Click on Add someone else to this PC.Add-someone-else-to-this-PC
  3. Select “I don’t have this person’s sign-in information,” and then “Add a user without a Microsoft account.”
  4. Follow the rest of the onscreen instructions to create the new account.
  5. Then, go back to Family & other users, and select the new account.
  6. Click on Change account type.
  7. Go to Account type, and select Administrator.change-account-type-windows-10
  8. Save the changes and sign in with the new admin account.

Check if you can create the program directory using the new local admin account.

Disable Controlled Folder Access

Check if turning off Controlled folder access solves the problem.

  1. Go to Windows Security and select Virus and threat protection.
  2. Go to Virus and threat protection settings and click on Manage settings.
  3. Scroll down to Controlled folder access.
  4. Then click on Manage Controlled folder access.
  5. Disable this option and close Windows Security.controller-folder-access-windows-10
  6. Check if you can install the problematic program now.

Disable Your Antivirus and Firewall

If Windows 10 can still create a new directory for the program you’re trying to install, disable your antivirus completely.

  1. Go back toWindows Security and select Virus and threat protection. 
  2. Go to Virus and threat protection settings.
  3. Switch off the Real-time protection option.windows-security-real-time-protection

Then turn off your firewall and try again.

  1. Go to Control Panel, and select System and Security.
  2. Then go to Windows Defender Firewall.
  3. Click on Turn Windows Defender Firewall on or off and disable the firewall.

turn-off-Windows-Defender-Firewall

Sometimes, your antivirus and firewall may mistakenly identify the new program as a threat. Make sure to download new programs only from trusted sources. If you download them from obscure third-party web pages, chances are your security tools are right blocking the programs.

Conclusion

If your Windows 10 computer says that an error occurred while creating the directory, make sure to use an admin account. Then go to Windows Security settings and disable Controlled folder access. If the issue persists, disable your antivirus and firewall and install the problematic program again. Hit the comments below and let us know if you managed to fix this problem.

Categories: Windows

Author Madalina Dinita

Madalina has been a Windows fan ever since she got her hands on her first Windows XP computer. She is interested in all things technology, especially emerging technologies -- AI and DNA computing in particular.

You Might Also Like

  • Adjusting Privacy Settings in Windows 10

    MonaWindows
  • How to Create a Shortcut to Windows 10 Calculator

    Judy SanhzWindows
  • Fix-Windows-11-Remember-My-Apps-Greyed-Out

    How to Manage Sleep Settings in Windows 11

    Judy SanhzWindows
  • How to Restart Graphics Driver Top 9 Methods You Must Know

    How to Restart Graphics Driver: Top 9 Methods You Must Know

    Tamal DasmacOS

Leave a Reply

Your email address will not be published. Required fields are marked *

  • clipchamp unexpected application error

    Clipchamp Unexpected Application Error: Here’s the Solution 

  • winload.efi file missing error

    Winload.EFI File Missing Error on Boot – How to Fix

  • fix error 0x9cfc7550

    How to Fix Error 0x9cfc7550 (We Couldn’t Create a New Partition) in Windows 

  • fix error code 0x3000008 1

    How to Fix Error Code 0x3000008 for Remote Desktop Connection

  • fix error code 0x80190001 1

    How to Quickly Fix Error 0x80190001 for Microsoft or Outlook Account Login 

profile pic

The Experts Behind Technipages

My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Learn More

technipages logo white
linkedin icon

Technipages is part of Guiding Tech Media, a leading digital media publisher focused on helping people figure out technology. Learn more about our mission and team here.

© 2025 Guiding Tech Media All Rights Reserved

  • About Us
  • Contact
  • Terms of Use
  • Privacy Policy

© 2025 Guiding Tech Media All Rights Reserved

Information from your device can be used to personalize your ad experience.
Do not sell my personal information.

Last Updated on June 18, 2021 by Judy Sanhz