LeDragoX / Win-Debloat-Tools

Re-imagining Windows like a minimal OS install, already debloated with minimal impact for most functionality.
MIT License
4.82k stars 245 forks source link

PSDrive HKCR Does Not Exist Recommendation #147

Closed 5p3ctra closed 1 month ago

5p3ctra commented 6 months ago

Describe the Bug

I was testing this out and ran into an issue when running the Remove OneDrive process.

New-Item: Cannot find drive. A drive with the name 'HKCR' does not exist At C:PATH-TO\src\lib\debloat-helper\Set-ItemPropertyVerified.psm1:24

Set-ItemProperty : Cannot find drive. A drive with the name 'HKCR' does not exist. At C:\PATH-TO\src\lib\debloat-helper\Set-ItemPropertyVerified.psm1:30

How can this issue be reproduced?

1) Start Win Debloat Tools as admin using readme instructions. 2) Run 'Remove OneDrive'

Expected behavior?

In file /src/scripts/Remove-OneDrive.ps1 Changed line 31 to: New-PSDrive -PSProvider "Registry" -Root "HKEY_CLASSES_ROOT" -Scope Global -Name "HKCR" Other scripts outside the folder were able to find the created drive and the error seemed to be fixed. I am not sure if this is an issue other people have when running it? Or an issue from my Windows re-install?

Operating System

Windows 10

Operating System Version

21H2

Logs

N/A

nopeless commented 3 months ago

Having same issue