We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
How to clean up restore health as an administrator
peter021072
Posts: 464 Forumite
Someone has asked me to run this command as an administrator
DISM /Online /Cleanup-Image /RestoreHealth SFC /SCANNOW
however, I'm struggling with entering the command by itself because the prompt C:/users/entra is in front, and I can't get rid of it. If I just place it in front it produces an error. How can I run this command in that screen?

DISM /Online /Cleanup-Image /RestoreHealth SFC /SCANNOW
however, I'm struggling with entering the command by itself because the prompt C:/users/entra is in front, and I can't get rid of it. If I just place it in front it produces an error. How can I run this command in that screen?

0
Comments
-
What's the error?0
-
Have you tried cmd in search box?0
-
Don't worry about the text in front, that is simply the directory your prompt is currently located in.
The error may be due to something in the command you are typing / pasting
As above, what is the error being returned? If it is anything about "elevated permissions" you will need to run CMD as an administrator.Also, the instruction is a 2 part process, you should enter "DISM /Online /Cleanup-Image" /RestoreHealth first, you will then need to wait a couple of minutes while the progress bar completes before you can enter the "SFC /SCANNOW" command.
Also, I have never seen a problem where SFC /SCANNOW has actually fixed the issue, but there is always a first time!
• The rich buy assets.
• The poor only have expenses.
• The middle class buy liabilities they think are assets.2 -
Also Note - DISM can often look like it has got stuck at 62.3% when run on Windows 11.It isn't stuck and is still working (if you open Task Manager you can see that) so just let it get on with it.
It can take 10-20 minutes, (or even a couple of hours on an older, slow machine), then suddenly jumps up to 100%.If yours does that 62.3% thing then you can still use the computer while waiting for DISM to complete.As already said don't worry about the text prompt, it's just showing what directory you are currently connected to.
Here is a screenshot of what running DISM followed by SFC looks like in an elevated command window:
1 -
That screenshot is Powershell, not command prompt.I presume DISM works in Powershell, but I've always used it in Command Prompt.Although depending on what you're trying to fix there may be other options.0
-
- I presume DISM works in Powershell, -
It does.0
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 352.5K Banking & Borrowing
- 253.7K Reduce Debt & Boost Income
- 454.4K Spending & Discounts
- 245.5K Work, Benefits & Business
- 601.4K Mortgages, Homes & Bills
- 177.6K Life & Family
- 259.4K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards



