Windows 10: Repairing Windows 10 VM

Discus and support Repairing Windows 10 VM in Windows 10 Installation and Upgrade to solve the problem; I have an install of Windows 10 running as a VM guest in a Hyper-V host that I use for testing purposes. As part of this purpose the VM is part of the... Discussion in 'Windows 10 Installation and Upgrade' started by WindowsAdmin, Sep 12, 2020.

  1. Repairing Windows 10 VM


    I have an install of Windows 10 running as a VM guest in a Hyper-V host that I use for testing purposes. As part of this purpose the VM is part of the Windows Insider program.


    It's been regularly updating without any problem until the most recent release. It never finished rebooting. I checked it through the Hyper-V management console and it was stopped at failing a repair during the reboot.


    I have tried every repair option that is available and none have worked. What has also puzzled me is that when I've attempted a System Restore or System Image Recovery, it needs an administrative account to do so but says there are none. However, the account that I had always signed in with was an administrative account and is my live.com account. I never created a local admin account.


    So is there any way to fix this or is this install toast? If it's the latter then that's really too bad as it was using a no longer used retail Windows 7 license that I had used when creating the VM. I know all about VDI licensing but this is just a test VM so I didn't see anything wrong with doing it the way I did it.


    Unfortunately I didn't maintain a record of the license I used and the machine I got it off of got scrapped so I can't recover it. So am I just out of luck or is there a way to repair this VM?


    Jonathan

    :)
     
    WindowsAdmin, Sep 12, 2020
    #1
  2. Kursah Win User

    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, Sep 12, 2020
    #2
  3. Kursah Win User
    Repair Windows 7/8/10

    Repairing Windows 7

    Methods of advanced CLI repair were introduced with Windows 7 and Server 2008 that can allow sysadmins and end-users to attempt to resolve issues without wiping their hard drive, re-installing and either losing or restoring data.

    I will list the important repair processes I use in the field, at my bench, remotely, for family, etc. that have allowed me to keep a current Windows 7 system deployed and running smooth. Keep in mind this is not a cure-all, some issues will require what is called an in-place upgrade. In more severe cases, a system re-install may still be required. For many it is worth the time to try and avoid that process and I am hopeful that some of you will be saved that hassle with this part of the guide!

    If you're having issues with Windows 7, hopefully the below repair instructions will help you confirm OS file corruption and help resolve it.

    Spoiler: Windows 7 Repair In-Place Upgrade

    If CHKDSK and SFC fail to repair the issues with the system, then the next option is to perform an in-place upgrade. This is comparable to an Operating System Refresh in Windows 8/8.1 and 10. In that it re-installs most of the operating system's files without losing your profiles, data or programs. In many cases this process accomplishes just that.

    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 a Windows 7 and Server 2008 in-place upgrade:
    • Must have installation media that matches the installed OS version and type. You can download that media click here.
    • 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.
    • 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 7 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 7 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 7 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.**
    Spoiler: Update Windows 7 Successfully Update Windows 7 Successfully

    Many of us have or will run into it, the endless hours of waiting for the Windows Update process to actually update or fail trying to update a Windows 7 install. Could be a fresh install, or a years-old install. This will eventually happen to you, unless you run a WSUS server, and even then the OS can get held up. Microsoft has been changing how all supported versions of Windows update, trending towards the cumulative monthly releases. This transition seems to be one of the tipping points on the matter.

    Regardless, there are some excellent solutions available to help you keep up your Windows 7 installation.

    • Solaris17's Windows Update Utility
      • Recommended method for most users that simply want their Windows 7 installation updated. Run as admin, follow directions, be patient.
      • Please comment in that thread if you need assistance or run into issues. Solaris has made many useful changes and revisions due to good feedback.
    • Update Windows 7 Manually
      • Manually perform the tasks that Solaris's utility does if you prefer.
    • Update Windows 7 Manually
      • Another source.
    • Update Windows 7 Manually
      • One last source for good measure!
    • Windows 7 Refreshed Media Creation
      • Creating a Windows Image file (WIM) that contains the necessary updates can make future deployments boatloads easier. This is well worth a read for the more technical types and sys admins.
    Those links should provide you with some very useful ways to handle updating Windows 7. If you run into any issues updating Windows 7, please start a thread or post in a relevant linked thread if its kept current.
     
    Kursah, Sep 12, 2020
    #3
  4. Repairing Windows 10 VM

    GPU-Z kills windows 10 VM

    Hello there,
    when I run gpu-z on VM running vgpu (M60 or K2 grid) VM crash and restarts itself.

    OS: windows 10
    GPU: nvidia grid M60 | nvidia grid K2
    GPU-Z release: 1.14~1.17
    Issue: windows crash in VM and it won't power on.
    How to reproduce: Run gpu-z in a windows 10 VM with (M60 or K2 grid) vgpu, VM restarts instantly without any progress

    Please check and release fix for this issue.

    Here is the dumpfile for gpu-z: Dropbox - Error

    Thanks,
     
    Minion Flowthroe, Sep 12, 2020
    #4
Thema:

Repairing Windows 10 VM

Loading...
  1. Repairing Windows 10 VM - Similar Threads - Repairing

  2. "Scanning and repairing drive C:: 100% complete" Error!

    in Windows 10 Software and Apps
    "Scanning and repairing drive C:: 100% complete" Error!: I have this nagging problem with Win 11 Pro showing "trying to fix my C drive during bootup, just because "lights went off". From that moment on i started to seethe Repairing error during boot time.So it is commonly thought it could be a disk error.So the solution would be to...
  3. "Scanning and repairing drive C:: 100% complete" Error!

    in Windows 10 Installation and Upgrade
    "Scanning and repairing drive C:: 100% complete" Error!: I have this nagging problem with Win 11 Pro showing "trying to fix my C drive during bootup, just because "lights went off". From that moment on i started to seethe Repairing error during boot time.So it is commonly thought it could be a disk error.So the solution would be to...
  4. "Scanning and repairing drive C:: 100% complete" Error!

    in Windows 10 Gaming
    "Scanning and repairing drive C:: 100% complete" Error!: I have this nagging problem with Win 11 Pro showing "trying to fix my C drive during bootup, just because "lights went off". From that moment on i started to seethe Repairing error during boot time.So it is commonly thought it could be a disk error.So the solution would be to...
  5. How to repair WinRE Recovery.

    in Windows 10 Gaming
    How to repair WinRE Recovery.: I have just upgraded to Windows 11. When I test the recovery system I can boot into it. It offers the start up settings option, but on "reboot" returns to the previous page. It does not reboot to the Startup options page which allows me to choose options such as 1 debugging,...
  6. How to repair WinRE Recovery.

    in Windows 10 Software and Apps
    How to repair WinRE Recovery.: I have just upgraded to Windows 11. When I test the recovery system I can boot into it. It offers the start up settings option, but on "reboot" returns to the previous page. It does not reboot to the Startup options page which allows me to choose options such as 1 debugging,...
  7. My Laptop is stuck in Preparing for repair, or Please wait.

    in Windows 10 Gaming
    My Laptop is stuck in Preparing for repair, or Please wait.: Hello, I've done the recent windows update on my Gigabyte MF G5 model, after the update was finished my PC restarted, I didn't login to my account and I shut it down. The next day it was stuck in the booting menu, I tried safe booting, force shutting it 3 times in a row ,...
  8. My Laptop is stuck in Preparing for repair, or Please wait.

    in Windows 10 Software and Apps
    My Laptop is stuck in Preparing for repair, or Please wait.: Hello, I've done the recent windows update on my Gigabyte MF G5 model, after the update was finished my PC restarted, I didn't login to my account and I shut it down. The next day it was stuck in the booting menu, I tried safe booting, force shutting it 3 times in a row ,...
  9. I'm trying to do an auto repair on my laptop but it keeps telling me the password is wrong....

    in Windows 10 BSOD Crashes and Debugging
    I'm trying to do an auto repair on my laptop but it keeps telling me the password is wrong....: I'm trying to do an auto repair on my laptop but it keeps telling me the password is wrong. Why? I sign in on other devices just fine. https://answers.microsoft.com/en-us/windows/forum/all/im-trying-to-do-an-auto-repair-on-my-laptop-but-it/08286333-4c0f-4844-8a90-fb08c12fa7e5
  10. I'm trying to do an auto repair on my laptop but it keeps telling me the password is wrong....

    in Windows 10 Gaming
    I'm trying to do an auto repair on my laptop but it keeps telling me the password is wrong....: I'm trying to do an auto repair on my laptop but it keeps telling me the password is wrong. Why? I sign in on other devices just fine. https://answers.microsoft.com/en-us/windows/forum/all/im-trying-to-do-an-auto-repair-on-my-laptop-but-it/08286333-4c0f-4844-8a90-fb08c12fa7e5