Hello,
I botched my registry by changing the permissions to the C:Windows\System32\config folder so that I could cd into it and inspect the contents.
To try fixing the permissions, I did an xcopy /S/X/K (including all subdirs) from a Macrium image backup. This fixed it to some level because, as expected, I can no longer cd into C:Windows\System32\config. But something may still be broken because my Windows PIN and finger print
did not restore. Or maybe this is expected behavior -- the need to reenter them for security reasons - I don't know.
I also messed up the laptop's OneDrive folders while trying to move them and they are now empty or have subdirectories
which are empty. And I also have duplicate docs and pix folders. This is on Win11 Pro 25H2 (26200.6899) on a Lenovo Thinkpad.
Thankfully, my OneDrive (in the cloud) was not affected because I was doing the folder moves
after I had disabled syncing for the folders and I've also unlinked the PC from OneDrive. OneDrive is still installed but I'm signed out.
I can give more details on my attempt to move the OneDrive folders and how I landed with 2 each of Documents and Pictures folders.
But at this point, between the OneDrive folder issues plus the registry issue, I'm considering starting from scratch using
a Lenovo factory reset USB. Even if the shell folder directory structure could be fixed, I'm concerned that if I enable OneDrive with those folders blank, it would wipe out my cloud OneDrive and also delete all files on my other devices. In contrast, I'm assuming that a reset will cleanly remove my account with the busted folders, and going through OOBE and signing in with the Microsoft account will restore the proper directory structure so I can proceed with OneDrive as normal.
Prior to these mistakes, I had created the Thinkpad recovery media USB -- which I would use if I go with the factory reset route.
My question(s): as I go through OOBE should I reuse the current name of the laptop (which I had created during initial setup) or should I use a new name?
The Windows license came with the Thinkpad, and is activated and linked to my Microsoft account.
And this laptop name is already listed as one of my devices in my Microsoft account.
If I reuse the laptop name during a reset, would it show up as a duplicate device? If so, this sounds concerning because I wouldn't know which one to delete.
But if I change the name during a reset, will the device on my account eventually get updated with the new name or will it show up as a new device? If it shows up as new, is it safe to remove the device with the old name?
I'm not attached to the name, but would like some guidance on which option to take.
I guess the same question applies for any type of recovery that involves naming the laptop and signing in with a Microsoft account.
Windows' built in Reset this PC+Remove everything seems like another option to resolve both the registry and OneDrive folders issue.
Downside being I might need to restore Thinkpad drivers.
But I anyway did backup the Driver directory following option 1 of this tutorial
www.elevenforum.com
Some info I could find on recent Lenovo factory reset was this Lenovo windows “recovery” media and other animals – Ivan Krivyakov
Not much I could find on Reddit. And I haven't found any confirmation that Lenovo Thinkpads fully follow Microsoft's Bare metal recovery spec.
The laptop did came with a C:\Recovery directory which are almost sure to be Lenovo customizations (subdirs there are AutoApply, Customizations and OEM, and a ReAgentOld.xml file). Not sure though if USB recovery will somehow access these. Strangely, these subdirs/files are not the the Lenovo Recovery USB even though to use their USB creation tool I had to enter the Thinkpad's serial number which should have made it a custom USB.
Follow-up question: Is there a recommendation between Windows Reset PC+Remove everything or the Lenovo factory reset recovery USB?
If I were to go with Reset PC+Remove, I would follow Option1, do step6, cloud download & remove files from all drives based on this tutorial:
I only have 1 drive and I would want Windows to recreate the 'hidden' partitions.
www.elevenforum.com
My desired end state is OneDrive activated for selected shell folders and also set all files as "always keep in this device".
Then I will be taking the Macrium Reflect image with the actual files on the laptop (and also a file and folder backup of the Onedrive synced shell folders). That's what I should have done in the first place, before attempting to move the shell folders.
Thanks for reading. I'm just trying to give a much info as I can as background to the questions. This could have been split into different threads maybe but they are all somehow related. And thanks in advance for the help.
I botched my registry by changing the permissions to the C:Windows\System32\config folder so that I could cd into it and inspect the contents.
To try fixing the permissions, I did an xcopy /S/X/K (including all subdirs) from a Macrium image backup. This fixed it to some level because, as expected, I can no longer cd into C:Windows\System32\config. But something may still be broken because my Windows PIN and finger print
did not restore. Or maybe this is expected behavior -- the need to reenter them for security reasons - I don't know.
I also messed up the laptop's OneDrive folders while trying to move them and they are now empty or have subdirectories
which are empty. And I also have duplicate docs and pix folders. This is on Win11 Pro 25H2 (26200.6899) on a Lenovo Thinkpad.
Thankfully, my OneDrive (in the cloud) was not affected because I was doing the folder moves
after I had disabled syncing for the folders and I've also unlinked the PC from OneDrive. OneDrive is still installed but I'm signed out.
I can give more details on my attempt to move the OneDrive folders and how I landed with 2 each of Documents and Pictures folders.
But at this point, between the OneDrive folder issues plus the registry issue, I'm considering starting from scratch using
a Lenovo factory reset USB. Even if the shell folder directory structure could be fixed, I'm concerned that if I enable OneDrive with those folders blank, it would wipe out my cloud OneDrive and also delete all files on my other devices. In contrast, I'm assuming that a reset will cleanly remove my account with the busted folders, and going through OOBE and signing in with the Microsoft account will restore the proper directory structure so I can proceed with OneDrive as normal.
Prior to these mistakes, I had created the Thinkpad recovery media USB -- which I would use if I go with the factory reset route.
My question(s): as I go through OOBE should I reuse the current name of the laptop (which I had created during initial setup) or should I use a new name?
The Windows license came with the Thinkpad, and is activated and linked to my Microsoft account.
And this laptop name is already listed as one of my devices in my Microsoft account.
If I reuse the laptop name during a reset, would it show up as a duplicate device? If so, this sounds concerning because I wouldn't know which one to delete.
But if I change the name during a reset, will the device on my account eventually get updated with the new name or will it show up as a new device? If it shows up as new, is it safe to remove the device with the old name?
I'm not attached to the name, but would like some guidance on which option to take.
I guess the same question applies for any type of recovery that involves naming the laptop and signing in with a Microsoft account.
Windows' built in Reset this PC+Remove everything seems like another option to resolve both the registry and OneDrive folders issue.
Downside being I might need to restore Thinkpad drivers.
But I anyway did backup the Driver directory following option 1 of this tutorial
Backup and Restore Device Drivers in Windows 11
This tutorial will show you how to back up and restore all 3rd party device drivers on your Windows 10 and Windows 11 PC. If you clean install Windows, you will need to install drivers for each device in the system. Some of these device drivers may no longer be available from the manufacturer...
www.elevenforum.com
Some info I could find on recent Lenovo factory reset was this Lenovo windows “recovery” media and other animals – Ivan Krivyakov
Not much I could find on Reddit. And I haven't found any confirmation that Lenovo Thinkpads fully follow Microsoft's Bare metal recovery spec.
The laptop did came with a C:\Recovery directory which are almost sure to be Lenovo customizations (subdirs there are AutoApply, Customizations and OEM, and a ReAgentOld.xml file). Not sure though if USB recovery will somehow access these. Strangely, these subdirs/files are not the the Lenovo Recovery USB even though to use their USB creation tool I had to enter the Thinkpad's serial number which should have made it a custom USB.
Follow-up question: Is there a recommendation between Windows Reset PC+Remove everything or the Lenovo factory reset recovery USB?
If I were to go with Reset PC+Remove, I would follow Option1, do step6, cloud download & remove files from all drives based on this tutorial:
I only have 1 drive and I would want Windows to recreate the 'hidden' partitions.
Reset Windows 11 PC
This tutorial will show you how to reset Windows 11 and Remove everything or Keep my files. You can reset Windows 11 when your PC isn’t working well and it’s been a while since you installed an app, driver, or update. Resetting reinstalls Windows 11, but lets you choose whether to keep your...
www.elevenforum.com
My desired end state is OneDrive activated for selected shell folders and also set all files as "always keep in this device".
Then I will be taking the Macrium Reflect image with the actual files on the laptop (and also a file and folder backup of the Onedrive synced shell folders). That's what I should have done in the first place, before attempting to move the shell folders.
Thanks for reading. I'm just trying to give a much info as I can as background to the questions. This could have been split into different threads maybe but they are all somehow related. And thanks in advance for the help.
- Windows Build/Version
- Win11 Pro 25H2 (26200.6899)
My Computer
At a glance
Windows 11 Pro 25H2Intel Core Ultra 7 255H32G : Lenovo MEMORY, DDR5,5600,SODIMM,Sk HYNIX
- OS
- Windows 11 Pro 25H2
- Computer type
- Laptop
- Manufacturer/Model
- Lenovo Thinkpad E16 Gen 3
- CPU
- Intel Core Ultra 7 255H
- Memory
- 32G : Lenovo MEMORY, DDR5,5600,SODIMM,Sk HYNIX
- Hard Drives
- 1TB M.2 PCIe 4x4 : SK Hynix PVC10 HFS001TEM4X169N
- Browser
- Brave
- Antivirus
- Windows Defender










