Command Prompt or PowerShell Syntax to DISM Fix Drive C: But Using a the Command Prompt of a Windows to Go

Anonymous
2024-02-05T14:18:56+00:00

Hi Windows 11 friends.

I have no more external USB or Flashdrive to create a USB Windows 11 (build 22H2) Installer to fix the drive C: Windows 11 (build 22H2) nor can use its DISM or SFC (Checkdisk runs fine but it's not powrful enough to fix it) on its own Command Prompt among other issues- the C: Window is very messed up.

With my Windows to Go (build 23H2, it's a newer build) and .iso of the Windows 11 (22H2 build) mounted how do I DISM fix C: using Windows to Go? What's Command Prompt syntax?

On Windows to Go which I can't erase coz' of the amount of things installed (will take a lot of precious time to bring back to what it once was, if erased) in there the C: has a drive letter of H: and Windows Installer .iso (w/ the sources/install.wim) has a drive letter of F:).

I have tried the command (which doesn't work) with the syntax (been trying to fix Windows C: drive for weeks and came to the DISM and creating a Windows 2 Go w/ a spare drive on a powered USB hub):

dism /Image:H:\ /cleanup-image /restorehealth

What could be the syntax that'll DISM-fix C: (the main internal drive Windows C:?

Thank you in advance. God bless us.

P.S. Microsoft Forum designer friends, it's best to include 'Repair' in the dropdown textbox in the 'Topics' category. Also there's a bug when it comes to paragraph spacing on the body, if you noticed, the last paragraph above it double spaced coz' the system did not detect there's a space between the 'dism /Image:H:' line and 'What could be' line and paragraphs above it which I've double-spaced for good measure. Thank you in advance for fixing this bug.

***moved from Windows / Windows 11 / Performance and system failures***

Windows for business Windows Client for IT Pros Performance Windows desktop and shell experience

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} vote

5 answers

Sort by: Most helpful
  1. Anonymous
    2024-02-07T01:55:59+00:00

    Hello

    Thank you for posting in Microsoft Community forum.

    To use DISM to fix the C: drive using the Command Prompt of a Windows to Go, you can try the following syntax:

    dism /Image:H:\ /Cleanup-Image /RestoreHealth /Source:F:\sources\install.wim

    This command assumes that the Windows to Go drive has a drive letter of H: and the Windows Installer .iso has a drive letter of F:. You will also need to specify the path to the install.wim file in the /Source parameter.

    Note that this command may take some time to complete and may require an internet connection to download necessary files. Additionally, it is recommended to backup important data before attempting any repairs on the C: drive.

    Best Regards,

    Zack Lu

    0 comments No comments
  2. Anonymous
    2024-02-20T03:18:08+00:00

    Hi Alvin777,

    Since the limited resource and information, I recommend you repost your question in the Q&A forum, where there will be a dedicated engineer to give you a professional and effective reply.

    Here is the link for Q&A forum.

    Questions - Microsoft Q&A

    Thank you for your understanding and support. If you have any question or concern, please feel free to let us know.

    Have a nice day.

    Best Regards,

    Zack Lu

    0 comments No comments
  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Anonymous
    2024-02-08T02:50:31+00:00

    Hi sir Zack thanks.

    I tripled checked that I typed things out correctly with CMD run as admin but sadly it has that Error 2 which I think means drive C: is not letting 100% access though it lets Windows to Go see it mounted and see it's files, even though I've booted in Safe Mode and disabled as much in the Services tab in msconfig.

    On both Windows, I'm logged in as Administrator. Is there anything I should enable or disable in Drive C: for Windows to Go to have 100% access (which one)? Attached below are the photos (click to enlarge, magnify digitally or lower resolution to magnify even more- may apologies again, I tried making it into one phtos, so it's easy to see all that the same time but if you need 10 photos separately, let me know, I'll up 10 separately) of Error 2 and what's enabled in the Services tab.

    Thank you in advance, again.

    Image

    Image

    0 comments No comments
  5. Anonymous
    2024-03-08T04:35:01+00:00

    Hello sir Zack. Do you know the syntax of the equivalent of Image:H: but for the bcdedit, bootserct and bootrec commands. I want apply these three commands to another volumes. For more of this inquiry, check this out.

    Thank you. God bless Windows experts, advanced Happy Easter.

    0 comments No comments