如果您遇到错误消息Windows 无法(Windows could not complete the installation)在您的 Windows 11/10 计算机上完成安装,那么这篇文章旨在帮助您。在这篇文章中,我们将确定可能的原因,并提供您可以尝试帮助您解决此问题的最合适的解决方案。
当你遇到这个问题。您将收到以下完整的错误消息;
Windows could not complete the installation. To install Windows on this computer, restart the installation.
如果在创建用户帐户之前中断全新Windows安装,您可能会遇到此问题。Windows 7/8.1/10升级到Windows 10/10或将Windows 11/10升级到更新的版本/内部版本时,也可能出现此错误。在某些情况下,您在尝试重置Windows 11/10时可能会遇到此问题,正如某些用户所报告的那样。
但是,此错误本质上意味着您正在使用审核模式(Audit Mode)安装Windows,这是导致此错误的主要原因。当Windows首次启动时,它可以启动到OOBE或审核模式。
Windows 无法完成安装
如果您遇到此问题,您可以尝试以下我们推荐的解决方案(不分先后顺序),看看是否有助于解决问题。
- 运行自动启动修复
- 启用管理员帐户
- 启动帐户创建向导
- 更改密码要求
- 修改一些注册表项值
- 禁用审核模式
让我们看一下关于列出的每个解决方案所涉及的过程的描述。
1]运行自动启动修复
当您收到错误消息Windows 无法(Windows could not complete the installation)在更新/升级Windows 10之后/期间完成安装时,您可以尝试运行自动启动修复(running Automatic Startup Repair)并查看问题是否会得到解决。
2]启用管理员帐户
请执行下列操作:
- 在错误屏幕上按 Shift + F10 打开 Command Prompt 。
- 键入mmc并按 Enter。
- 在打开的窗口中,单击 File > Add/Remove Snap-in.
- 选择 计算机管理(Computer Management) ,然后双击它。
- 在打开的新窗口中选择本地计算机。( Local computer.)
- 单击完成(Finish)。
- 单击确定(OK)。
- 然后双击 Computer Management (Local) > System Tools > Local Users and Groups > Users > Administrator.
- 确保取消选中帐户已禁用( Account is disabled)选项。
- 单击确定(OK)。
- 接下来,右键单击 管理员(Administrator) ,然后选择 设置密码(Set Password) 并设置强密码以开始使用。
您现在可以退出MMC控制台并重新启动计算机,看看问题是否已解决。如果是后者,请继续下一个解决方案。
3]启动帐户创建向导
请执行下列操作:
- 通过按Shift + F10 组合键再次打开错误屏幕上的命令提示符(Command Prompt)。
- 在下面输入目录路径,然后按 Enter(Enter)。
cd C:\windows\system32\oobe
以上将启动用户帐户创建向导,因此创建一个通用帐户及其密码。此处可能需要您的产品密钥。(Product Key)
- 完成后点击Finish,退出一切并重新启动您的 PC。
在启动时,检查Windows 是否无法完成安装(Windows could not complete the installation) 问题是否已解决。否则,继续下一个解决方案。
4]更改密码要求
如果您处于审核模式(Audit Mode)并且计算机刚刚加入域,您将收到Windows 无法完成安装(Windows could not complete the installation)错误。该错误是由添加到本地安全策略的密码要求引起的。这通常包括最小密码长度和密码复杂性。
要更改密码要求,请执行以下操作:
- 在错误屏幕上按 Shift + F10 打开 Command Prompt 。
- 键入secpol.msc并按 Enter。
- 导航到 Account Policies > Password Policy.
- 现在将最小密码长度(Minimum password length)更改 为0并禁用密码必须满足复杂性要求(Password must meet complexity requirements )选项。
- 应用更改,然后退出安全策略(Security Policy)控制台。
- 单击错误消息上的确定以重新启动您的 PC。(OK)
如果问题仍然存在,请尝试下一个解决方案。
5]修改一些注册表键值
请执行下列操作:
- 在错误屏幕上按Shift + F10组合键打开 Command Prompt 。
- 键入regedit并按 Enter。
在打开的注册表编辑器窗口中,导航或跳转到下方和右侧窗格中的注册表项路径,依次双击以下注册表项并相应地修改值(Value)数据字段:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status
审计(Audit):0
HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\ChildCompletion
安装程序.exe(setup.exe):3
HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\ChildCompletion
审计.exe(audit.exe):0
HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus
清理状态(CleanupState):2
HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus
泛化状态(GeneralizationState):7
HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\UnattendPasses
审计系统(auditSystem):0
完成后,重新启动您的 PC,审核模式(Audit Mode)将被禁用,Windows 10将正常启动并启动进入开箱(Out)即用体验(Box Experience)模式。
6]禁用审核模式
请执行下列操作:
- 在错误屏幕上按Shift + F10组合键打开 Command Prompt 。
- 键入下面的命令,然后按 Enter(Enter)。
sysprep /oobe /generalize
这将禁用审核模式。
Windows 无法完成安装(Windows could not complete the installation )问题应该得到解决。但是,如果您仍然遇到此问题,请再次打开CMD提示符并执行以下操作:
- 键入regedit并按 Enter。
- 导航到以下注册表项:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\State
- 在该位置的右窗格中,右键单击ImageState条目并选择Delete。
- 退出CMD提示符并重新启动您的 PC。
Hope this helps!
Windows could not complete the installation [Fixed]
If you’re encountering the error message Windows could not complete the installation on your Windows 11/10 computer, then this post is intended to help you. In this post, we will identify the possible causes, as well as provide the most appropriate solutions you can try to help you remediate this issue.
When you encounter this issue. you’ll receive the following full error message;
Windows could not complete the installation. To install Windows on this computer, restart the installation.
You can encounter this issue when a fresh Windows installation is interrupted before a user account is created. This error may also occur when upgrading from Windows 7/8.1/10 to Windows 10/10 or upgrading Windows 11/10 to a newer version/build. In some cases, you may encounter this issue when you try to reset Windows 11/10 as reported by some users.
However, this error essentially means you are using Audit Mode to install Windows which is the main cause of this error. When Windows boots for the very first time then either it can boot to OOBE or Audit Mode.
Windows could not complete the installation
If you’re faced with this issue, you can try our recommended solutions below in no particular order and see if that helps to resolve the issue.
- Run Automatic Startup Repair
- Enable Administrator Account
- Start Account Creation Wizard
- Change Password Requirements
- Modify some registry key values
- Disable Audit Mode
Let’s take a look at the description of the process involved concerning each of the listed solutions.
1] Run Automatic Startup Repair
As you’re receiving the error message Windows could not complete the installation after/during updating/upgrading Windows 10, you can try running Automatic Startup Repair and see if the issue will be resolved.
2] Enable Administrator Account
Do the following:
- On the error screen press Shift + F10 to open Command Prompt.
- Type mmc and hit Enter.
- In the window that opens, click File > Add/Remove Snap-in.
- Select Computer Management and then double-click on it.
- In the new window that opens select Local computer.
- Click Finish.
- Click OK.
- Then double-click Computer Management (Local) > System Tools > Local Users and Groups > Users > Administrator.
- Make sure to uncheck the Account is disabled option.
- Click OK.
- Next, right-click on the Administrator then select Set Password and set a strong password to get started.
You can now exit MMC console and restart your computer and see if the issue is resolved or not. If the latter is the case, continue with the next solution.
3] Start Account Creation Wizard
Do the following:
- Again open the Command Prompt on the error screen by pressing Shift + F10 key combination.
- Type the directory path below and hit Enter.
cd C:\windows\system32\oobe
- Next, type msoobe and hit Enter.
The above will start the user account creation wizard, so create a generic account and it’s password. Your Product Key might be required here.
- Once done hit Finish, exit everything and restart your PC.
On boot, check if the Windows could not complete the installation issue is resolved. Else, proceed with the next solution.
4] Change Password Requirements
If you’re in Audit Mode and the computer has just been joined to a domain, you’ll receive the Windows could not complete the installation error. The error is caused by password requirements added to the local security policy. This typically includes a minimum password length and password complexity.
To change password requirements, do the following:
- On the error screen press Shift + F10 to open Command Prompt.
- Type secpol.msc and hit Enter.
- Navigate to Account Policies > Password Policy.
- Now change Minimum password length to 0 and disable Password must meet complexity requirements option.
- Apply the changes and then exit the Security Policy console.
- Click OK on the error message to reboot your PC.
If the issue persists, try the next solution.
5] Modify some registry key values
Do the following:
- On the error screen press Shift + F10 key combo to open Command Prompt.
- Type regedit and hit Enter.
In the registry editor windows that opens, navigate or jump to the registry key path below and on the right pane double-click on the following registry keys one after the other and modify the Value data field accordingly:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status
Audit: 0
HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\ChildCompletion
setup.exe: 3
HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\ChildCompletion
audit.exe: 0
HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus
CleanupState: 2
HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus
GeneralizationState: 7
HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\UnattendPasses
auditSystem: 0
Once done, reboot your PC and the Audit Mode will be disabled and Windows 10 will start normally and boot into the Out of Box Experience mode.
6] Disable Audit Mode
Do the following:
- On the error screen press Shift + F10 key combo to open Command Prompt.
- Type the command below and hit Enter.
sysprep /oobe /generalize
This will disable the Audit Mode.
- Now exit CMD prompt and reboot your PC normally.
The Windows could not complete the installation issue should be resolved. However, If you’re still facing this issue then again open CMD prompt and do the following:
- Type regedit and hit Enter.
- Navigate to the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\State
- At the location, in the right pane, right-click the ImageState entry and select Delete.
- Exit CMD prompt and restart your PC.
Hope this helps!