Windows installation completing installation

Ошибка «Windows could not complete the installation. To install Windows on this computer restart the installation» при запуске клонированной виртуальной машины Hyper-V с Windows Server 2012 R2

Это первая часть очередной истории о том, как можно наступить на грабли, там, где обычно этого не ожидаешь. Началось всё с того, что для очередного развёртывания нескольких однотипных виртуальных машин Hyper-V с гостевой ОС Windows Server 2012 R2 был подготовлен эталонный образ виртуального диска с установленной ОС. В эталонный образ были включены все актуальные обновления, после чего для уменьшения размера диска был применён метод очистки хранилища компонент Windows в каталоге WinSxS, а логический том системного диска по своему объему был усечён таким образом, что на нём оставалось около 5GB свободного пространства. Перед отключением ВМ в эталонной гостевой ОС по законам жанра была выполнена утилита sysprep. В дальнейшем с этого образа было успешно развёрнуто несколько ВМ, имеющих конфигурацию ВМ, сопоставимую с эталонной ВМ. Спустя некоторое время после всей этой истории с пониманием того, что ранее несколько развёртываний с образа прошли успешно, была предпринята попытка развернуть ещё пару ВМ с этого же образа.

К нашему удивлению при первом же запуске новой ВМ гостевая ОС отказалась загружаться с сообщением об ошибке » Windows Setup could not configure Windows to run onthis computer’s hardware » на этапе первичной инициализации.

Аналогичная ситуация повторилась и на второй новой ВМ, которую мы попытались развернуть с этого же образа. Попытка повторного перезапуска на обеих ВМ привела к другому сообщению об ошибке » Windows could not complete the installation. To install Windows on this computer restart the installation «

Далее после нажатия кнопки «OK» система отправлялась в перезагрузку и при следующей загрузке ситуация со второй ошибкой повторялась.

В попытках понять суть происходящего, в момент возникновения последней ошибки (не нажимая кнопки «OK» в окне сообщения об ошибке) жмём волшебную комбинацию клавиш Shift+F10 и попадаем в окно командной строки, выполняемое в контексте прав Администратора. Выполняем листинг содержимого файлов на системном диске C:\ …

…и обнаруживаем, что свободного места на диске практически нет. При этом размер файла подкачки pagefile.sys , размещаемого по умолчанию в корне этого диска имеет внушительный размер.

И здесь мы вспоминаем про то, что предыдущие успешные развёртывания с данного образа виртуального диска выполнялись на виртуальные машины, имеющие небольшой объём ОЗУ, а последние две ВМ, где мы столкнулись с проблемой, при создании были сконфигурированы на использование большого объема ОЗУ. И предположительно, причиной невозможности корректной первичной инициализации системы стал раздутый файл подкачки.

В такой ситуации можно попробовать умерить аппетиты гостевой ОС на расширение файла подкачки, установив на время ограниченный максимальный размер файла. Для этого из уже открытой командной строки можем вызвать апплет управления свойствами системы sysdm.cpl. В открывшейся форме переходим на закладку управления расширенными настройками Advanced и в блоке Performance нажимаем кнопку Settings. В дополнительно открывшейся форме переходим на вкладку Advanced и в разделе Virtual memory используем кнопку Change чтобы изменить параметры файла подкачки.

Отключим используемое по умолчанию автоматическое определение размера файла подкачки, укажем первичный и максимально допустимый размеры файла через опцию Custom size (например, от 512MB, но не больше 2GB) и нажмём Set, затем OK.

Теперь можно попробовать перезагрузить виртуальную машину, и при следующей загрузке гостевой ОС свободного места на системном диске должно быть достаточно для нормальной первичной инициализации системы. В нашем случае одна из ВМ загрузилась успешно, а вторая ВМ, не смотря на доступность места на диске продолжила выдавать ошибку » Windows could not complete the installation… «. Вероятно, в процессе первого запуска ОС с наличием проблемы с нехваткой свободного места на диске с механизмом OOBE (Out-of-Box Experience) что-то пошло не так.

На фоне сообщения об ошибке жмём уже знакомую комбинацию клавиш Shift+F10 и, попав в командную строку, перемещаемся в каталог C:\Windows\System32\oobe , где выполняем ручной запуск утилиты msoobe.exe

В случае успешного вызова этой утилиты перед нами должно появиться стандартное окно первичной настройки параметров системы, которое появляется при первом запуске ранее sysprep-нутой системы.

После того, как определим языковые параметры, и на следующих двух экранах примем лицензионное соглашение и укажем учётные данные администратора, мастер первичной инициализации закроется и мы снова вернёмся на первоначальный чёрный экран с открытой командной строкой, в которой вызовем команду штатной перезагрузки гостевой системы:

В нашем случае после перезагрузки гостевая система успешно загрузилась.

Если ранее установили небольшой фиксированный файл подкачки, то не забываем его вернуть обратно в автоматический режим, либо указываем другой устраивающий нас размер.

Делаем вывод, что если нам заранее известно то, что внутри шаблонного виртуального диска на системном томе гостевой ОС немного свободного места, то перед первым запуском ВМ лучше установить минимальный объём ОЗУ, исходя из которого система не будет пытаться создать файл подкачки большого размера. А уже после окончания процесса первичной инициализации можно будет увеличить размер ОЗУ ВМ до нужного объёма. Ну или же при создании эталонного диска можно устанавливать небольшой фиксированный размер файла подкачки, который, возможно, потребуется после первичной инициализации новой гостевой ОС, выставлять обратно в автоматический режим либо увеличивать под свои нужды.

Читайте также:  Как защитник windows справляется с вирусами

С другой стороны, если Вам критична стабильность и предсказуемость работы развёрнутой из шаблона гостевой ОС и Вы испытали проблемы в ходе первичной инициализации OOBE, то лучше пытаться выполнять развёртывание повторно до тех пор, пока оно не отработает штатно. То есть лучше безжалостно удалять виртуальный диск, где первичная инициализация ОС прошла с ошибками и цеплять шаблонный диск к новой ВМ повторно для получения нужного результата. В противном случае с такой «кое-как взлетевшей» системой может случиться ещё несколько историй в духе «О сколько нам открытий чудных …». Одной из таких дивных историй я поделюсь в следующей заметке.

Windows 7 stalls at “Completing installation” phase

Original title: Installing Windows Completing installation ongoing for hours

I had to do a custom installation in order to fix the Windows 7 startup repair error which seemed to go okay with several restarts as expected but the systems seems to be stuck on the completing installation activity although all boxes are checked copying

Expanding windows files

and now » Completing installation . «

2 hours and still running.

At completing installation phase, driver migration takes place. There might be some interference with the driver migration and that is when the installation hangs at this phase.

I would suggest you to try the steps mentioned below.

Step 1: Disconnect all the external devices

If you’ve any external devices apart from mouse and keyboard, please disconnect them all to see if the installation continues.

Step 2: Use Shift + F10

If the installation still hangs at “Completing installation” phase, then press Shift + F10 which opens a command prompt. Once the command prompt is opened, follow the steps mentioned below.

a. In the command prompt, type explorer.exe and press Enter.

b. Windows will try to load some settings and it will try to restart itself.

If windows don’t restart, then go ahead and perform a hard reboot by using the power button.

c. This will complete the installation.

Hope this information is helpful and let me know if you need any further assistance

Mouneshwar R – Microsoft Support

Visit our Microsoft Answers Feedback Forum and let us know what you think

[If this post helps to resolve your issue, please click the «Mark as Answer» or «Helpful» button at the top of this message. By marking a post as Answered, or Helpful you help others find the answer faster.]

844 people found this reply helpful

Was this reply helpful?

Sorry this didn’t help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

[SOLVED] Windows 10 Could Not Complete the Installation + Guide [MiniTool Tips]

By Tina | Follow | Last Updated January 05, 2021

  • Facebook
  • Twitter
  • Linkedin
  • Reddit

Summary :

Have you ever gotten stuck with the Windows installation error Windows could not complete the installation when updating your operating system? This post will give you 5 ways to solve the error when Windows 10 installation has failed. Just try them one by one to get rid of the issue to use PC properly, especially try MiniTool software.

Quick Navigation :

Phenomenon

Nowadays, more and more computer users say that they have been troubled by the following Windows 10 installation error “Windows could not complete the installation. To install Windows on this computer, restart the installation.” This error shows up when they want to boot their computer after updating the operating system.

However, they don’t know how to fix the issue when Windows could not complete the installation after updating to Windows 10, so they ask for help on the Internet.

If you have the same problem, you have come into the right place now because this article will give you five solutions to fix the issue when Windows creates this database of configuration settings during installation.

In particular, the fifth method is the most effective and reliable one.

Now, we will introduce the methods one by one to fix the Windows installation failure after update.

Quick Video Guide:

Case 1: Windows Could Not Complete the Installation

Fix#1. Using Automatic Repair

If you have received an error message that says Windows 10 could not complete the installation after updating your operating system, you can try using Automatic Repair to solve Windows 10 installation error.

Step 1: Start your PC. Just as Windows attempts to load, press the Power button to turn it off immediately. Do this operation two or three times.

Step 2: On the third time, you can see a message that says “Preparing Automatic Repair”, then you can click “Advanced options” to repair your PC.

Step 3: You need to click “Troubleshoot”> “Reset this PC”> “Keep my files”.

Step 4: You need to choose one account and input your password to continue.

Step 5: Next, you need to click «Cancel» button. Then click «Continue» button to exit and continue to Windows 10 Home.

After that, you can try to restart your computer and check whether the issue Windows cannot complete the installation has been fixed.

Читайте также:  Windows uefi boot option

Fix#2. Enable Administrator Account

The second method of solving error “Windows could not complete the installation Windows 10 Shift 10 not working” is to enable administrator account. You can try using it to fix Windows 10 installation problem.

Step 1: On the error screen, you can press “Shift” key and “F10” key together to launch Command Prompt.

Step 2: Then, type the MMC command and hit “Enter” to continue.

Step 3: In the main interface, you need to click “File” and choose “Add/Remove Snap-in” to continue.

Step 4: In the following popup window, choose “Computer Management” and double-click it.

Step 5: In the next window, you need to check the “Local computer: (the computer this console is running on)” and click “Finish” to continue.

Step 6: Then click “OK” to continue to the next step.

Step 7: After returning to the main interface, you need to click “Computer Management (Local)”> “System Tools”> “Local Users and Groups”> “Users”> “Administrator” to continue.

Step 8: Then you can open the following interface by double-click “Administrator”. After that, you need to make sure that the option “Account is disabled” is unchecked. Then click “OK” to continue.

Step 9: Next, right-click “Administrator” and choose “Set Password”. You need to set a strong password to get started.

Step 10: All steps have been finished. Now, you can restart your computer and check whether the error Windows could not complete the installation Shift 10 not working is solved.

Fix#3. Change Password Requirement

If above solutions are not effectively to solving the error “Windows could not complete the installation”, you can try changing password to solve Windows 10 installation error.

Step 1: You still need to open the Command Prompt by pressing “Shift’ and “F10” keys together on the error screen.

Step 2: Then you can input the secpol.msc command and hit «Enter» to continue.

Step 3: After that, you will see a popup window. Thus, you need to unfold “Account Policy” and choose “Password Policy”.

Step 4: You can see “Minimum password length” on the right side. You need to right-click on it, choose «Properties», and change the “Security Setting” to 0 characters. Then apply it and click “OK” to continue.

Step 5: Make sure that the “Password must meet complexity requirements” is disabled by right-clicking it, choosing “Properties” and apply it. Then click “OK” to continue.

Step 6: Then reboot your computer to check whether the Windows 10 installation failure is solved.

Fix#4. Run Account Creation Wizard

Now, we will introduce the fourth method to solve “Windows could not complete the installation Windows 10”. Of course, if the above methods are not working, you can try to use this one.

Step 1: You need to press “Shift” key and “F10” key together on the error screen to launch the Command Prompt.

Step 2: Then type the following command and hit “Enter” to continue.

CD C:\windows\system32\oobe

Step 3: Then input msoobe command and hit “Enter” to continue.

Step 4: Then you will see a popup window. You need to make a generic account and password. On this popup window, then click ‘Finish” button to finish the process.

Step 5: Now, you can reboot your computer and check whether the error “Windows could not complete the installation. To install Windows on this computer, restart the installation.” is solved.

Fix#5. Restore to Different Computer

If none of above methods work, you can use the fifth solution which is to restore to different computer. As a matter of fact, this solution is effective and thousands of users have successfully solved the problem by using it.

Now, we will introduce how to restore to different computer step by step with pictures.

To restore to different computer, you need the help of a piece of third-party software. Fortunately, MiniTool Software Limited can provide you with such a kind of software, which is MiniTool ShadowMaker.

The Windows 10 backup software – MiniTool ShadowMaker has been the first choice of thousands of computer users, because it is a type of professional backup software that provides various backup services with its multiple functions, such as files backup, system backup, disk backup and so on.

Besides backup feature, it even can help you to clone hard drive and clone OS from HDD to SSD.

Before introducing how to restore to different computer, you can download MiniTool ShadowMaker Trial which can be used for 30 days without any fees from the following button or purchase an advanced one.

After you have successfully installed the free backup software, you can try restoring to different computer based on following instructions.

The precondition of restoring to different computer is that you have created a system image on a normal computer in advance by using MiniTool ShadowMaker.

Therefore, in order to solve Windows 10 installation problem, you need to install and run MiniTool ShadowMaker Trial on a normal computer and create a system image on it since your computer can’t boot due to the error “Windows could not complete the installation Windows 10”.

Thus, the following article is useful for you to create a system image.

In addition, a bootable media is necessary since your computer can’t boot normally. As a matter of fact, you can use MiniTool ShadowMaker Trial to create it.

Therefore, you need to know how to create the bootable media and how to boot your computer from it. You can take the following two articles as a reference.

Читайте также:  Linux directory size command line

Then we will show you how to solve the error of Windows 10 installation has failed through restoring to different computer step by step.

Step 1: Connect the hard drive to your computer and enter MiniTool Recovery Environment. Go to the Restore interface and click “Add Backup” to add system image to the backup list. Then choose it and click “Restore” to continue.

Step 2: In the popup window, you need to choose the backup version and click “Next” to continue.

Step 4: You need to choose a target disk and click “Next” to continue.

How to keep data safe? How to back up files on windows 10? This post will introduce 4 ways to back up files with ease.

Step 5: The free backup software will begin the restoration process, so you need to wait patiently.

Step 6: After the restoration process is finished, you may find your computer still can’t boot normally. The reason is that the operating system is incompatible with your computer. Thus you need to boot your computer from the bootable media and go to “Tools” to choose “Universal Restore” to fix this problem.

Step 7: Then this free backup software can automatically list the operating system on the left pane and you need to click “RESTORE” button to continue.

Step 8: After a while, the restore process should be completed. Then you can exit MiniTool Recovery Environment and set your computer to boot from hard drive. Then you can check whether your computer can boot successfully.

Case 2: Windows 10 Installation Has Failed

When installing the operating system, you may come across the error Windows 10 installation has failed. This error may occur in the middle of the installation.

So, in the following section, we will show you how to fix the error that Windows 10 installation has failed.

Fix 1. Check Whether Your Computer Meets the Minimum Requirements

In order to install Windows 10 on your computer, you need to check whether your computer meets the minimum requirement. So, you need to check the following parameters.

  • RAM:1GB for 32 bit and 2GB for 64 bit
  • Hard disk space:16 GB for 32 bit and 20 GB for 64 bit
  • CPU:1GHz or faster
  • Screen resolution:800 x 600
  • Graphics:Microsoft DirectX 9 or later with WDDM 1.0 driver
  • Internet access

If your computer cannot meet the above requirements, you may come across the error that Windows 10 installation has failed.

Fix 2. Clear Certain Attributes of the Installation Folder

Now, here is the tutorial.

  1. Boot your computer from Windows 10 installation media as usual and navigate to the last screen.
  2. Minimize the installer and open File Explorer by opening a folder and navigate to C drive.
  3. Then select the $WINDOWS.

BT folder.

  • Right-click on the problematic folder and click the Properties option from the context menu. Stay in General tab and locate the Attribute section at the bottom. Uncheck the option Read-Only and System and click Apply to save the changes.
  • When it is finished, check whether the error that Windows 10 installation has failed is fixed.

    Fix 3. Rebuild BCD

    In order to fix the error that Windows 10 installation has failed, you may try rebuilding BCD. To rebuild BCD, you can read the post: Step-by-Step Guide to Repair and Fix MBR Windows 7/8/8.1/10 to learn some more detailed solutions.

    Fix 4. Run the Installation in Clean Boot

    If you come across the error Windows 10 installation has failed, you can choose to install Windows 10 in Clean Boot.

    Now, here is the tutorial.

    1. Open Run dialog.
    2. Type msconfig in the box and click OK to continue.
    3. In the popup window, go to the General Then check Selective startup and uncheck the option Load startup items.
    4. Go to the Services tab, check Hide all Microsoft services and click Disable all.
    5. Go to the Startup tab, click Open Task Managerand disable all unnecessary items.

    After that, check whether the error that Windows 10 installation has failed is solved.

    Bottom Line

    In conclusion, we have introduced five ways to solve Window 10 installation issue “Windows could not complete the installation. To install Windows on this computer, restart the installation.” There is no doubt that each method has its advantage. We think the fifth way to solve Windows installation issue is more effective and more reliable.

    Now, it is your turn to have a try. Of course, if you have any better solution to Windows 10 installation failed issue, you can share it on the comment zone. Or if you have any problem with MiniTool ShadowMaker, you can contact us via the email [email protected] .

    ABOUT THE AUTHOR

    Position: Columnist

    Tina is a technology enthusiast and joined MiniTool in 2018. As an editor of MiniTool, she is keeping on sharing computer tips and providing reliable solutions, especially specializing in Windows and files backup and restore. Besides, she is expanding her knowledge and skills in data recovery, disk space optimizations, etc.

    On her spare time, Tina likes to watch movies, go shopping or chat with friends and enjoy her life.

    Оцените статью