Windows 8 and 8.1 Forums

command prompt and win outside environment

  1. #1

    Posts : 83
    WINDOWS 8 pro

    command prompt and win outside environment

    hello i noticed that the commands sfc/scannow and dism/online/cleanup-image/restorehealth

    is not performing properly when i run command prompt from win outside environment(i boot from win 8 installation disk).for sfc says something ...(i dont remember exactly) that can't be found and for dism-restore health command that the log file can not found..something like that.why it happens?should work only via windows environment ?with right clik as administrator e.t.c?or i have a deeper problem?sorry for my bad english

      My System SpecsSystem Spec

  2. #2

    You need to use the offwindir and offbootdir options, something like:

    sfc /SCANFILE=d:\windows\system32\kernel32.dll /OFFBOOTDIR=d:\ /OFFWINDIR=d:\windows

    The drive letter will depend on where you OS drive is as it may not be C:, could be D: or E: or ...

    You can find it by entering bcdedit. Look at the

    osdevice partition=

      My System SpecsSystem Spec

  3. #3

    Posts : 83
    WINDOWS 8 pro

    in microsft community told me to type CDSystem32 sfc /scannow
      My System SpecsSystem Spec

  4. #4

    Quote Originally Posted by vasilis View Post
    in microsft community told me to type CDSystem32 sfc /scannow
    That would be

    CD system32
    sfc /scannow

    But that won't work as you are not in the Windows directory of the OS boot drive.

    Do as I showed in my previous post and it will work.
      My System SpecsSystem Spec

  5. #5

    Posts : 83
    WINDOWS 8 pro

    and for online retsore health command?
      My System SpecsSystem Spec

  6. #6

    RUn these from a Elevated Commadn Promt:

    Dism /Online /Cleanup-Image /StartComponentCleanup
    Dism /Online /Cleanup-Image /RestoreHealth
    SFC /scannow

      My System SpecsSystem Spec

command prompt and win outside environment
Related Threads
Command prompt flashed once in General Support
Hello, While typing up an assignment, I just barely noticed that command prompt opened and then closed for a fraction of a second. I am extremely cautious with the files I download, and instantly performed a scan with malwarebytes. It detected nothing, so I performed a second scan with...
Solved Sfc /scannow command prompt in Performance & Maintenance
I ran the sfc /scannow command prompt on my Windows 8.1 desktop. It said it could fix all of the problems. So, I restarted it. It said the corrupted files were in C/Windows/Logs/CBS/CBS.log. I couldn't get it to paste the files on this forum. Also, command prompt gave me a not that said...
Command Prompt help in General Support
The average monitor can display 25 lines of text in full screen mode. When you list a directory containing more than 25 files, some of the filenames disappear off the top of the screen before you have a chance to read them. What do you add to the DIR command to always prevent this?
Solved elevated command prompt...huh? in General Support
how do I open an elevated command prompt?
Command Prompt crashes in General Support
Hi After upgrading from Windows 7 to Windows 8 everything seems to works fine except when I want to run command line applications from 3rd party programs. When this is happening the Windows 8 command prompt just stop working. I have to use many programs based on command prompt for web developing...
Command Prompt shortcut in General Support
Hello, I don't know if anyone has suggested this before or not. Sorry to be redundant if they have. See Picture attached.
I want to enable Safe Mode in my Laptop and to do that I need to run Command Prompt as an administrator. But when I right click on command Prompt and select Run as Administrator, nothing happens. I tried this about 5 times with no results. Please help me! :)
Eight Forums Android App Eight Forums IOS App Follow us on Facebook