How to Fix Using DISM Windows to Go Using the Windows 11 USB Installer?

Alvin777 20 Reputation points
2024-02-20T03:49:51.7633333+00:00

Hello Microsoft friends. When I boot to the Windows 11 USB Installer and use the Command Prompt to fix the Windows to Go on an external drive, when I type on the Command Prompt: dism /Image:G:/Cleanup-Image /RestoreHealth it displays the error 2 which I think means 'Access Denied'. Drive G: is the mount point of the Windows to Go external drive. What could be the commands I should use to make DISM fix my Windows to Go installation (the hardisk is plugged it onto an external USB hub)? Thank you in advance. God bless you. Revelation 21:4

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wesley Li 11,245 Reputation points
    2024-02-20T06:58:07.2766667+00:00

    Hello The error code 2 you’re encountering typically indicates that the system is unable to access the image. Here are some steps you can try to resolve this issue:   Check File/Folder Permissions: Make sure you have Read permissions on the Windows directory/folder. Optimize and Defragment Drive: Run Disk Defragmenter to rearrange fragmented data, which could potentially trigger the DISM error 2. Temporarily Disable or Uninstall Antivirus: Third-party security software could interfere with some processes on your computer. Make Sure Windows is Up to Date: It is important to make sure Windows is updated, so that you know you’re running the latest version of the DISM tool.   If the issue persists, you can try the following commands in the Command Prompt (run as administrator):   To check the health of the image: DISM /Online /Cleanup-Image /CheckHealth   To scan the health of the image: DISM /Online /Cleanup-Image /ScanHealth   To restore the health of the image: DISM /Online /Cleanup-Image /RestoreHealth   Please replace /Online with /Image:G: if you want to target the Windows to Go installation.   If the RestoreHealth command fails, you can specify a source to repair the image. Replace <source> with the path to your known-good files (this could be a mounted Windows image or a side-by-side store):     DISM /Online /Cleanup-Image /RestoreHealth /Source:<source>     Again, replace /Online with /Image:G: if you want to target the Windows to Go installation.   Remember to replace the drive letter G: with your actual drive letter if it’s different.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.