How to delete all record of usb device connected history?

Nguyen Diep Anh Vu 5 Reputation points
2023-05-15T11:09:00.3833333+00:00

Dear Microsoft support,

I want to control which USB devices allowed then can be connected to computer, others do not allowed then can not. I tried to do many way from Internet to delete history record of USB devices pre-connected and plus to use Group Policy under Computer configuration -> Administrative Template -> System -> Device Installation -> Device Installation Restrictions to control USB devices allowed or denied. But no way to delete history record of USB devices pre-connected.

Can you please give me a solution to delete history record of USB devices pre-connected? So, I can control which USB devices allowed or denied?

Thank you so much!

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,848 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,906 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,546 questions
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,611 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,278 questions
{count} vote

4 answers

Sort by: Most helpful
  1. Reza-Ameri 17,011 Reputation points
    2023-05-15T18:50:43.9233333+00:00

    Open start and search for Regedit and open it.

    Try backup registry , have a look at:

    https://support.microsoft.com/en-us/topic/how-to-back-up-and-restore-the-registry-in-windows-855140ad-e318-2a13-2829-d428a2ab0692

    If you navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR you will find history which you may delete.


  2. Docs 15,551 Reputation points
    2023-05-16T00:36:24.2933333+00:00

    There are third party software that can list all currently connected USB devices.

    It will also list previously connected USB devices.

    Name

    Device

    Serial number

    Date and time added

    Vendor ID

    Product ID

    etc.

    If interested in this third party software please comment into this thread.

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

  3. Nguyen Diep Anh Vu 5 Reputation points
    2023-05-18T06:16:40.96+00:00

    Dear Reza-Ameri

    First, thank you for your response. I tried to do many ways from Internet guide to delete all subkey under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR but failed to delete them. Even, I changed the ownership of USBSTOR key folder is local administrator account but cannot still delete subkeys.
    My main purpose is to delete all history of USB storage devices connected to computer and control which USB storage devices allowed or denied via GPO.

    Is there way to delete all history of USB storage devices saved on computer without using to third-party tools??

    Thank you so much!

    0 comments No comments

  4. Nguyen Diep Anh Vu 5 Reputation points
    2023-05-30T04:03:33.01+00:00

    Dear Reza-Ameri

    For a long time, I did not received any reply from you. Can you help with my problem?

    0 comments No comments

Your answer

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