Share via

How to delete XiaomiDrv.sys

Ammar Ayub 0 Reputation points
2026-02-08T05:13:01.4733333+00:00

I tried to force delete this file using cmd as administrator, but each time it says Access is denied. Also, deleting the file directly causes it to say it is open in another application, therefore I cannot delete it.

Any ideas how to get rid of this driver?

Windows for home | Other | Files, folders, and storage
{count} votes

3 answers

Sort by: Most helpful
  1. Ramesh 175.8K Reputation points Volunteer Moderator
    2026-02-11T03:44:59.29+00:00

    The driver registration must be removed first. Please share your Farbar scan logs for analysis.

    • Download Farbar Recovery Scan Tool 64-bit FRST64.exe
    • If the OS language is not English, rename FRST64.exe to FRST64English.exe.
    • Run the program. Don't check or uncheck any options. Click "Scan".
    • Add the two logs, FRST.txt and Addition.txt, to a zip archive.
    • Share the zip file on OneDrive or GoFile.io, and post the link here.

    Note: If Microsoft Edge or Chrome mislabels the Farbar Scanner executable as PUA/malware, choose to keep it by tapping … in the bottom bar, choosing Keep, and then choosing Keep anyway in the dialog that appears. See this screenshot. It's a safe tool used in most antimalware forums.

    0 comments No comments

  2. DaveM121 849.1K Reputation points Independent Advisor
    2026-02-08T16:35:51+00:00

    1

    Right click your Start Button and open Device Manager.

    At the top of Device Manager, select View - Show Hidden Devices'.

    At the top of Device Manager, select View - Devices by Driver.

    Then check in each category in Device Manager to see if you can see this driver - XiaomiDrv.inf

    If you can find that driver, right click it and uninstall it from there.

    Then restart your PC to apply the change.

    2

    If you are still unable to find that driver:

    Open File Explorer, then go to C:\Windows\SYstem32

    Perform search in that folder for XiaomiDrv.sys

    If you find that file, right click it and select Rename, then rename that file to this: XiaomiDrv.old

    Then, restart (not shut down) your PC to apply the change, that will stop that driver loading with Windows on startup.


  3. Q&A Assist
    2026-02-08T05:13:10.1866667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To delete the XiaomiDrv.sys file, you may encounter access issues or the file being in use by another application. Here are some steps you can try:

    1. Close Applications: Ensure that any applications that might be using the driver are closed. This includes any Xiaomi software or related tools.
    2. Use Safe Mode: Boot your computer in Safe Mode. This can prevent unnecessary drivers and applications from loading, allowing you to delete the file more easily.
    3. Take Ownership: If you still face access denied errors, you can take ownership of the file. You can use the subinacl utility to change the ownership and permissions of the file. Here’s an example command:
         subinacl /onlyfile "\\?\C:\path_to\XiaomiDrv.sys" /setowner=domain\administrator /grant=domain\administrator=F
      
      Replace C:\path_to\XiaomiDrv.sys with the actual path to the file.
    4. Delete Driver Package: If the driver is still causing issues, you can uninstall it through Device Manager. Make sure to select the option to delete the driver software for the device. If the driver is not listed, you may need to use the pnputil command to remove it completely:
         pnputil /delete-driver <Published Name> /uninstall
      
      Make sure to replace <Published Name> with the actual name of the driver package.
    5. Check for Running Processes: Use tools like Process Explorer from Sysinternals to check if any processes are using the XiaomiDrv.sys file. You can terminate those processes before attempting to delete the file again.

    If these steps do not resolve the issue, consider seeking further assistance with detailed error messages or behaviors observed during the attempts.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.