Windows 10: Repairing Windows 10 from the RE/PE environment?

Discus and support Repairing Windows 10 from the RE/PE environment? in Windows 10 Gaming to solve the problem; I have never had the SFC/DISM commands work successfully from PE/RE by either getting an initialization error or Windows resource protection error. I... Discussion in 'Windows 10 Gaming' started by Robiott38, Dec 13, 2022.

  1. Robiott38 Win User

    Repairing Windows 10 from the RE/PE environment?


    I have never had the SFC/DISM commands work successfully from PE/RE by either getting an initialization error or Windows resource protection error. I am trying to find out if there is a way to structure those commands so that they do work successfully in those environments. I'm sure there must be some way of repairing Windows in the RE/PE setting, it's just a manner of finding out the correct command structure. Let's just say it's a drive that now is in the automatic repair loop, so obviously the automatic startup repair function in the recovery environment doesn't work you'd be surprise

    :)
     
    Robiott38, Dec 13, 2022
    #1

  2. Install Driver on Windows PE Environment

    Hi,

    We are trying to install kernel-mode driver to Windows PE, but not able to do so.

    We checked using DevManView tool to check driver in windows PE. But we didn't see the Device object created.

    We suspect that the Driver Service didn't start.

    Given below are the details of the issue:

    Driver Details: SCSIAdapter class filter driver. (SdFilter)

    Steps followed:

    • Used DISM to edit the Windows PE image offline. (Inset image below)

    Repairing Windows 10 from the RE/PE environment? 9b0b98a6-84db-4a3f-be54-b5725e2fb121.png


    • Manually added the Driver details to the registry. The registry change is visible after reboot
      (inset image below)

    Repairing Windows 10 from the RE/PE environment? 2c3da2e1-8ef6-4e68-9ba2-c69d1a6add0d.png


    • Manually added Service (ServicesActive database) to offline image. The registry change is visible after reboot (inset image below)

    Repairing Windows 10 from the RE/PE environment? 8130ca1d-e8b0-40b3-8d39-1b5ba1099c6b.png


    But we checked using DevManView tool to check driver in windows PE. But we didn't see the Device object created.

    We suspect that the Driver Service didn't start.

    Can someone please guide how can we add the driver to the Windows PE environment.

    PS: The given filter driver is test signed. So, we suspect that later we will face test signed issue but that will be our second step to debug. Right now, not able to get through the first step.

    Thanks and Regards,

    Rakendra
     
    rakendrathapa, Dec 13, 2022
    #2
  3. Ocman76 Win User
    Macrium Reflect PE Environment cannot detect Bitlocker Drives

    I just checked and it appears to include the RAID driver!?

    Repairing Windows 10 from the RE/PE environment? [​IMG]
     
    Ocman76, Dec 13, 2022
    #3
  4. Kursah Win User

    Repairing Windows 10 from the RE/PE environment?

    Repair Windows 7/8/10

    Repairing Windows 8

    Further improving on previously deployed OS repair methods, Windows 8, 8.1, Server 2012 and 2012 R2 further allowed advanced repair where an in-place upgrade or total re-install would be required on previous operating systems. In all honesty, before Windows 10 implementation, this was arguably the easiest OS to repair for a couple of years by running more basic commands.

    This has since been advanced to more closely match Windows 10/Server 2016 repairs but with the below information I hope to guide you through performing these advanced tasks more easily!

    Spoiler: Windows 8/8.1 Repair DISM

    If CHKDSK and SFC fail to repair the issues with the system, then it this is your next option and besides restoring from a previous backup might be the second-to-last option before re-installing the operating system. We will utilize DISMfor this next repair option.
    • In some instances, you won't need the OS ISO to perform the DISM image cleanup. You can attempt this on any OS from 8-10 by using the following command in elevated CLI: DISM /Online /Cleanup-Image /RestoreHealth
    • In many cases now due to some changes Microsoft made, you'll need to have a copy of the OS ISO available. The ISO will need to be a standard deployment variety that contains Install.WIM in the Sources directory, otherwise the process will fail. Once you have the correct ISO, mount it in Explorer (can do this natively on Microsoft Windows 8.0+), verify the drive letter, verify Image.WIM in the Sources directory.
      • To download a Windows 8.1 ISO from Microsoft, click here.
    • Enter the following in elevated CLI: DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:X:\Sources\Install.wim:1 /LimitAccess
      • X = drive letter of mounted ISO. Change to match the appropriate drive letter.
      • Say I had the Install.WIM located in C:\Images, I would type the following command: DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:C:\Images\Install.WIM:1 /LimitAccess
    The DISM scan can take a while, often times longer than an CHKDSK or SFC scan. To speed up the process, have the Image.WIM on a faster flash media or on local storage rather than disc media. This will help greatly. In many cases one or two runs of this command will repair most issues I've found with Windows 8/8.1.

    Once the DISM repair process has been found successful, or not, I will perform a reboot. If the repair was unsuccessful, this will be when I attempt a second pass. If the second pass fails, it is time to move onto the next solution.

    However, if the DISM repair passes at any point, reboot the system and then perform an SFC to confirm no further issues are found or need resolved. This step is likely overkill for those not seeking to do optional steps.

    Operating System Refresh

    It should be noted that in the event DISM fails to repair the system, then an OS refresh would be the next suggestion if the deployed that could save the user's files and OS deployment.

    This feature has been an available feature since Windows 8 launched in 2012. The biggest benefit with this option over Windows 7's in-place-upgrade is not necessarily requiring the OS installation media to perform the repair.

    If the system is an OEM, an OS refresh from the OEM partition may mean a reinstall of the OS and loss of user data but the restoration of OEM software and bloatware. But you can still choose a manual OS-only refresh without the bloatware if you take the correct steps.

    The best choice in my opinion is to run an OS refresh procedure from the advanced boot menu or you can run the installation media while in Windows to perform and Upgrade installation, this will keep your files and settings but replace Windows files and components.

    To access the advanced boot menu for Windows 8, there are a several options.
    • When choosing restart from the OS GUI, hold down SHIFT and click restart. This method will work even if you cannot log into a profile on the system which makes it very useful in some situations.
    • If logged in, access PC Settings, and click Restart Now under Advanced Startup.
    • If logged in, open a command prompt window and type shutdown /r /o /t 0 which will initiate a reboot into the advanced menu right with no delay. Without /t 0, there will be a 60-second delay. The number value after the /t is delay seconds.
    Once you've reached the advanced boot menu, choose Troubleshoot. From there you can choose to Refresh your PC, Reset your PC and Advanced Options. For this repair, we want to choose Refresh your PC. It's description reads "If your PC isn't running well, you can refresh it without losing our files." That is exactly what we want to accomplish here!

    Follow the prompts and processes, and after the refresh installation and rebooting, you should be greeted with a login screen back to your profile in your stable OS environment. At this point you should be able to use the system as intended, if in doubt then re-run the SFC and DISM scans.

    In-Place Upgrade

    If CHKDSK, SFC and DISM fail to repair the issues with the system, yet you can still boot to the Windows desktop, then the next option is to perform an in-place upgrade. This is more in-depth than an Operating System Refresh. It re-installs most of the operating system's core image and critical files without losing your profiles, data or programs, but do expect to lose some settings. In many cases this process can fix some major issues and refresh an otherwise corrupt and issue-ridden OS installation back to something stable and usable.

    Time to close the CLI windows and get back into the GUI, unless you want to deploy Windows through CLI. You'll have to source a different guide for that process!

    Requirements to perform an in-place upgrade:
    • Must have installation media that matches the installed OS version and type. This applies to both Windows and Windows Server.
    • Must be able to get to the desktop on the affected system to correctly initiate this process, booting to the media will not allow an upgrade to be performed.
    That last rule is the frustrating part of this repair process if you cannot get that far, backup what you can and do a fresh installation. Otherwise proceed.
    • Start the process by using autorun or manually running setup.exe from the installation media.
    • Windows 8/Server 2012+ can mount ISO's in Windows Explorer, you can use that instead of physical media options to perform this task.
    • You'll come to the installation window, the options will be Upgrade or Custom. Choose Upgrade. This is critical as choosing custom will force you to overwrite, append or wipe out the current install rather than performing any kind of repair.
    • Follow the on-screen prompts, which should be very few for you to interact with. The overall process looks and is the Windows install GUI. Once it is completed, the system will automatically reboot (may need to more than once).
    • After the reboot(s) after the in-place upgrade you should have a fully functional Windows without issues or corruptions.
    Performing an in-place upgrade makes sense, and gives you a stable and clean running operating system when there's an issue or corruption you just can't fix but things aren't broken enough to warrant a fresh installation. The point of this process is to refresh the Windows OS files but retain your data, programs, and settings. That is precisely what the in-place upgrade procedure accomplishes.

    I should also add that this process can be accomplished remotely as well, from start to finish. I have done so with persistent LogMeIn, ScreenConnect and Teamviewer installations on various remote systems I have performed this task on, RDP should work as well. Being able to do this level of repair remotely is a huge benefit to any sysadmins out there looking to keep a client happy and perform that "remote magic" IT guys are known for.


    **If at this point your issues are not fixed, then there is something else occurring that is causing the issue be it Malware, hardware, drivers, etc. Please refer to the OP in this thread to run through some of those tests and diagnostics, or create a new thread seeking help and stating what you've tried.**
     
    Kursah, Dec 13, 2022
    #4
Thema:

Repairing Windows 10 from the RE/PE environment?

Loading...
  1. Repairing Windows 10 from the RE/PE environment? - Similar Threads - Repairing environment

  2. Is it possible to repair the App Repository using Windows Recovery Environment or similar...

    in Windows 10 Gaming
    Is it possible to repair the App Repository using Windows Recovery Environment or similar...: Hello, for the past few weeks I have been encountering the error code 0x80073CFE when trying to download or update apps from the Windows Store. I am on Windows 10 Home edition version10.0.19045 Build 19045. I'm not sure when this issue originated, as I do not typically use...
  3. Is it possible to repair the App Repository using Windows Recovery Environment or similar...

    in Windows 10 Software and Apps
    Is it possible to repair the App Repository using Windows Recovery Environment or similar...: Hello, for the past few weeks I have been encountering the error code 0x80073CFE when trying to download or update apps from the Windows Store. I am on Windows 10 Home edition version10.0.19045 Build 19045. I'm not sure when this issue originated, as I do not typically use...
  4. Is it possible to repair the App Repository using Windows Recovery Environment or similar...

    in Windows 10 BSOD Crashes and Debugging
    Is it possible to repair the App Repository using Windows Recovery Environment or similar...: Hello, for the past few weeks I have been encountering the error code 0x80073CFE when trying to download or update apps from the Windows Store. I am on Windows 10 Home edition version10.0.19045 Build 19045. I'm not sure when this issue originated, as I do not typically use...
  5. Pc isn’t showing automatic repair in recovery environment

    in Windows 10 Gaming
    Pc isn’t showing automatic repair in recovery environment: Hi there, I was in the process of working through a problem with trying to install league of legends and vanguard wouldn’t install. I went through many solutions with riot support and the most recent solution idea was a clean boot. Likely due to frustration, I didn’t see the...
  6. Pc isn’t showing automatic repair in recovery environment

    in Windows 10 Software and Apps
    Pc isn’t showing automatic repair in recovery environment: Hi there, I was in the process of working through a problem with trying to install league of legends and vanguard wouldn’t install. I went through many solutions with riot support and the most recent solution idea was a clean boot. Likely due to frustration, I didn’t see the...
  7. Pc isn’t showing automatic repair in recovery environment

    in Windows 10 Installation and Upgrade
    Pc isn’t showing automatic repair in recovery environment: Hi there, I was in the process of working through a problem with trying to install league of legends and vanguard wouldn’t install. I went through many solutions with riot support and the most recent solution idea was a clean boot. Likely due to frustration, I didn’t see the...
  8. Mouse and keyboard do not work in Windows 10 Repair Environment

    in Windows 10 Installation and Upgrade
    Mouse and keyboard do not work in Windows 10 Repair Environment: At boot time I am presented the "Choose an operating system" screen, and select: Change defaults or choose other options>Choose other options>Troubleshoot>Advanced options. At this point I am presented with the Advanced options of:1. Startup Repair2. Startup Settings3....
  9. Mouse and keyboard do not work in Windows 10 Repair Environment

    in Windows 10 Gaming
    Mouse and keyboard do not work in Windows 10 Repair Environment: At boot time I am presented the "Choose an operating system" screen, and select: Change defaults or choose other options>Choose other options>Troubleshoot>Advanced options. At this point I am presented with the Advanced options of:1. Startup Repair2. Startup Settings3....
  10. Mouse and keyboard do not work in Windows 10 Repair Environment

    in Windows 10 Software and Apps
    Mouse and keyboard do not work in Windows 10 Repair Environment: At boot time I am presented the "Choose an operating system" screen, and select: Change defaults or choose other options>Choose other options>Troubleshoot>Advanced options. At this point I am presented with the Advanced options of:1. Startup Repair2. Startup Settings3....