Unable to delete two files


wimorrison

Active member
Member
Local time
10:03 AM
Posts
118
OS
Win11
I have two sys files that I want to delete as they have been left over by some software that I have uninstalled, but I am unable to delete them or the directory they reside in.

The files reside in;

C:\Windows\System32\DriverStore\FileRepository\hantek6022be.inf_amd64_70a4a90bdfab9c4d\

When I try to delete them I am told I need system permissions which I can see on the file permissions and I have taken ownership of the directory as Administrator and propagated this down, but I can't add Administrator permissions to give me full control to allow me to delete the directory (including the sys files.

I cannot delete the registry keys for this install either :mad:

Can anyone suggest a way to delete these files and the directory?

Thanks
 

My Computer

System One

  • OS
    Win11
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude 7490
    CPU
    Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz, 189
    Memory
    8GB

cereberus

Well-known member
Pro User
VIP
Local time
10:03 AM
Posts
2,963
OS
Windows 10 Pro + others in VHDs
Boot in safe mode, and see if you can delete them.

If not boot in WinPE mode and you can delete them from a command prompt.

I actually boot into the Macrium Reflect Winpe mode, and use its file explorer to delete such stubborn files. I rarely bother messing with deleting from registry as it has no impact.
 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0

jimbo45

Well-known member
Power User
VIP
Local time
10:03 AM
Posts
2,223
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
For those who want to make Macrium Winpe mode - from Macrium create rescue media and in the options choose the PE variation not the RE one. It will prompt for permission to download a chunk from Ms -- It's OK. Then create a bootable usb stick, or bootable iso on your computer. When you boot into it you should see the console icon at the bottom on the taskbar. -- it's already in admin mode.

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7

cereberus

Well-known member
Pro User
VIP
Local time
10:03 AM
Posts
2,963
OS
Windows 10 Pro + others in VHDs
For those who want to make Macrium Winpe mode - from Macrium create rescue media and in the options choose the PE variation not the RE one. It will prompt for permission to download a chunk from Ms -- It's OK. Then create a bootable usb stick, or bootable iso on your computer. When you boot into it you should see the console icon at the bottom on the taskbar. -- it's already in admin mode.

Cheers
jimbo
This is incorrect. If you create a WinRE rescue disk, you are still in admin mode (more accurately admin mode has no meaning) and have the icons. I never use WinPE anymore.
 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0

jimbo45

Well-known member
Power User
VIP
Local time
10:03 AM
Posts
2,223
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
This is incorrect. If you create a WinRE rescue disk, you are still in admin mode (more accurately admin mode has no meaning) and have the icons. I never use WinPE anymore.
Hi there
Well if its changed - that's great news -- thanks for the info. I'm sure I never got the console icon before I changed to the PE version of Macrium - so I stand corrected.

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7

wimorrison

Active member
Member
Thread Starter
Local time
10:03 AM
Posts
118
OS
Win11
Boot in safe mode, and see if you can delete them.

If not boot in WinPE mode and you can delete them from a command prompt.

I actually boot into the Macrium Reflect Winpe mode, and use its file explorer to delete such stubborn files. I rarely bother messing with deleting from registry as it has no impact.

Perfect, and a useful bit of knowledge about getting into PE, it hadn't occurred to me to use Macrium to get there!

I have now managed to set up Core Isolation (Core isolation) which is what I was trying to do in the first place ;-)

Thanks Again
 

My Computer

System One

  • OS
    Win11
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude 7490
    CPU
    Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz, 189
    Memory
    8GB

glasskuter

Well-known member
Pro User
VIP
Local time
4:03 AM
Posts
2,900
Location
Paris in the Lone Star State of Texas
OS
Windows 11 Pro 22H2 22621.819
I boot into a Linux Mint distro from a usb drive for such cases as yours. It's also an excellent method for recovering files from old hard drives where permissions interfere. I've found all kinds of uses having a full OS at my disposal.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 22H2 22621.819
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 m.2 2230-256+1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 21H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium

A Guy

Righteous Dude
Power User
VIP
Local time
2:03 AM
Posts
1,670
Location
No matter where you go, there you are
OS
Windows 10 Home x64
Download RAPR and try to delete them there, if no go, try the force delete option


Also if Lockhunter still works in 11, you can right click the file and choose delete. If it can't delete it, you can choose to delete on reboot


A Guy
 

My Computers

System One System Two

  • OS
    Windows 10 Home x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    INTEL Core i5-11400
    Motherboard
    ASUS PRIME H570-PLUS
    Memory
    KINGSTON HyperX Fury Black DDR4 16GB (2 x 8GB) 3200MHz, CL16
    Graphics Card(s)
    EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
    Monitor(s) Displays
    LG 32MA68HY 32" IPS
    Screen Resolution
    1920 x 1080
    Hard Drives
    SAMSUNG 250GB 970 EVO Plus NVMe, M.2 SSD, Crucial 250GB MX500, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
    PSU
    CORSAIR RM550x 80 PLUS Gold 550W
    Case
    ANTEC P10 FLUX
    Cooling
    be quiet! Pure Rock 2, 5 x 120 mm Case Fans
    Internet Speed
    480 + Mbps Up/ 12+ Mbps Down
    Browser
    Vivaldi Snapshot
    Antivirus
    Avast
  • Operating System
    Windows 10 Home x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Intel Core i5-750
    Motherboard
    ASUS P7P55D
    Memory
    Kingston HyperX Fury Black 8GB (2x4GB) DDR3-1600MHz CL8
    Graphics card(s)
    MSI GeForce GT 240 N240GT-MD1G/D5 1 GB DDR5
    Monitor(s) Displays
    LG 32MA68HY 32" IPS
    Screen Resolution
    1980x1040
    Hard Drives
    Samsung Electronics 840 EVO 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
    PSU
    Antec TruePower New TP-550 550W
    Case
    Antec 300
    Cooling
    Cooler Master Hyper 212+, 4 Noctua NF-P12 120mm, 1 Noctua NF-P14 FLX
    Internet Speed
    480+ Mbps Down/12+Mbps Up
    Browser
    Vivaldi Snapshot
    Antivirus
    Avast

cereberus

Well-known member
Pro User
VIP
Local time
10:03 AM
Posts
2,963
OS
Windows 10 Pro + others in VHDs
Hi there
Well if its changed - that's great news -- thanks for the info. I'm sure I never got the console icon before I changed to the PE version of Macrium - so I stand corrected.

Cheers
jimbo
Nothing has changed - Macrium Reflect WinRe mode has been like this since day 1 on WinRe implementation. New features were added (primarily ability to back up over wifi, and no need to download nealy 1 GB of adk files, and better automatic driver handling) but no features were taken away.
 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0

x BlueRobot

Active member
Member
VIP
Local time
10:03 AM
Posts
194
OS
Windows 11
When I try to delete them I am told I need system permissions which I can see on the file permissions and I have taken ownership of the directory as Administrator and propagated this down, but I can't add Administrator permissions to give me full control to allow me to delete the directory (including the sys files.

I cannot delete the registry keys for this install either :mad:
That's because the DriverStore is a protected folder owned and managed by the TrustedInstaller. It's essentially a trusted store for driver packages and drivers to reside in which is then hardlinked to the usual Drivers and Inf folders.

As a general aside, please do not delete or touch anything to do with that folder, otherwise you could potentially end up breaking Windows Update, or worse still, causing your system to become unbootable.
 

My Computer

System One

  • OS
    Windows 11

Latest Support Threads

Top Bottom