FIX: Directory Name is Invalid

One of the many problems and issues that a clean install of Windows 10 may bring to your computer is your DVD drive malfunctioning and displaying an error message that says “Directory name is invalid” every time you put a CD or DVD into it and load it up. Many Windows 10 users reported of having experienced this issue after performing a clean install of Windows 10. The directory name is invalid problem can be caused by anything from the DVD drive being plugged into a dusty and choked SATA port to problems with the DVD drive’s installation on the computer. Regardless of what the case may be, the following are the three most effective methods that you can use to fix this issue on a Windows 10 computer:

Solution 1: Unplug your DVD drive and plug it into a different SATA port

If your directory name is invalid error stems from some kind of problem pertaining to the SATA port that your DVD drive is plugged into, plugging it into a different port will do the trick and get rid of the issue for you. To change the SATA port that your DVD drive is plugged into, open your computer’s casing, remove the DVD drive from its port and plug it into a different port. For example, if your DVD drive was plugged into SATA port 1, plug it into SATA port 2 or SATA port 3. This should be enough to fix this problem.

Solution 2: Disable and then enable the DVD drive’s driver

Right-click on the Start Menu button to open the WinX Menu.

In the WinX Menu, click on Device manager to open it.


Expand the DVD/CD-ROM drives section and double-click on your DVD drive to open its properties. Switch to the Driver. Click on Disable. Once the driver has been disabled, click on Enable to re-enable it.


Restart your computer. Your problem should be fixed as soon as your computer boots up.

Solution 3: Uninstall the DVD drive and reinstall

If the two solutions listed and described above did not work for you then there is quite a significant chance that this solution will. Rest assured as no harm will come to your computer from uninstalling your DVD drive – the computer will just reinstall the DVD drive upon the next reboot.

Right-click on the Start Menu button to open the WinX Menu. In the WinX Menu, click on Device manager to open it. expand the DVD/CD-ROM drives section, right-click on your DVD drive and click on Uninstall. Confirm the action in the window that pops up.


Restart your computer. Your DVD drive will be recognized by the computer as soon as you reboot and they will then be reinstalled. The reinstallation of the two drives is bound to fix this issue.


Kevin Arrows

Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.
Back to top button

Expert Tip

FIX: Directory Name is Invalid

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by clicking the Download button below.

Download Now

I'm not interested