Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Error: 87 The restorehealth option is not recognized in this context.


  • Please log in to reply

#1
ANSAL

ANSAL

    New Member

  • Member
  • Pip
  • 7 posts

Hi, I was running an Admin Command prompt on the computer in windows 7.

 

  1. In Command Prompt type in:

    sfc /scannow (hit Return/Enter)

    and wait till operation completes.

....and got the following Windows Resource protection found corrupt files but was unable to fix some of them.  Details are included in the CBS.Log Windir\Logs\CBS\CBS.log....

 

CBSlog.pngmagnifier_zoom_in.png

 

  1. In Command Prompt typed
  2. DISM /Online /Cleanup-Image /RestoreHealth (hit Return/Enter)

But Got This Message

 

Error: 87
 
The restorehealth option is not recognized in this context.
For more information, refer to the help.
 
The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
DISM log is attached.
 
ANYONE CAN HELP EARLIEST?

  • 0

Advertisements


#2
paws

paws

    WTT Tech Teacher

  • Tech Academy Moderator
  • 990 posts

Hi ANSAL and welcome to our forums

:welcome:

error 87 often indicate a syntax error in the command,

Make sure you are typing it correctly.

If still no joy then run sfc /scannow 5 or 6 times with a reboot in between and see if this helps... ( multiple runs with a reboot between each one are often required...)

 

Presumably you have already run chkdsk with the r switch ??   any errors found?

Regards

paws


  • 1

#3
ANSAL

ANSAL

    New Member

  • Topic Starter
  • Member
  • Pip
  • 7 posts

Hi ANSAL and welcome to our forums

:welcome:

error 87 often indicate a syntax error in the command,

Make sure you are typing it correctly.

If still no joy then run sfc /scannow 5 or 6 times with a reboot in between and see if this helps... ( multiple runs with a reboot between each one are often required...)

 

Presumably you have already run chkdsk with the r switch ??   any errors found?

Regards

paws

Hi PAWS,

 

Thank you for your reply...

 

C:\Windows\system32>DISM /Online /Cleanup-Image /RestoreHealth
 
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
 
Image Version: 6.1.7600.16385
 
 
Error: 87
 
The restorehealth option is not recognized in this context.
For more information, refer to the help.
 
The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
 

AND I Tried "sfc /scannow" many times the same error is showing... I was trying for two weeks.

 

CHKDSK results:

 

C:\Windows\system32>chkdsk

The type of the file system is NTFS.
 
WARNING!  F parameter not specified.
Running CHKDSK in read-only mode.
 
CHKDSK is verifying files (stage 1 of 3)...
  282880 file records processed.
File verification completed.
  1112 large file records processed.
  0 bad file records processed.
  2 EA records processed.
  44 reparse records processed.
CHKDSK is verifying indexes (stage 2 of 3)...
  341340 index entries processed.
Index verification completed.
  0 unindexed files scanned.
  0 unindexed files recovered.
CHKDSK is verifying security descriptors (stage 3 of 3)..
  282880 file SDs/SIDs processed.
Security descriptor verification completed.
  29231 data files processed.
CHKDSK is verifying Usn Journal...
  36618664 USN bytes processed.
Usn Journal verification completed.
Windows has checked the file system and found no problems
 
 244090879 KB total disk space.
 127199176 KB in 141110 files.
     89744 KB in 29232 indexes.
         0 KB in bad sectors.
    397311 KB in use by the system.
     65536 KB occupied by the log file.
 116404648 KB available on disk.
 
      4096 bytes in each allocation unit.
  61022719 total allocation units on disk.
  29101162 allocation units available on disk.
 
C:\Windows\system32>chkdsk /r
The type of the file system is NTFS.
Cannot lock current drive.
 
Chkdsk cannot run because the volume is in use by another
process.  Would you like to schedule this volume to be
checked the next time the system restarts? (Y/N) n
 
Regards,
ANSAL

  • 0

#4
SleepyDude

SleepyDude

    Trusted Helper

  • Malware Removal
  • 4,975 posts

Hi Ansal,

 

If you have Windows 7 the DISM command doesn't have the repair functionality that's why you get the error, only Windows 8 and above supports that.

 

You need to download the System Update Readiness Tool (SUR) that matches your Operating System

http://support.microsoft.com/kb/947821

 

Save it to some place, its a big download and eventually you need to run it several times, keep the file in safe place.
Run the tool. Its like an Update but it can take a long time to do the work. You will get an Installation Complete screen when it's done running.

 

After running SUR restart the computer and run SFC /scannow again to see if it continues to report errors or not.


  • 1

#5
paws

paws

    WTT Tech Teacher

  • Tech Academy Moderator
  • 990 posts

Good call Rui

I had forgotten that, with Win 7

:thumbsup:


  • 0

#6
ANSAL

ANSAL

    New Member

  • Topic Starter
  • Member
  • Pip
  • 7 posts

Hi Ansal,

 

If you have Windows 7 the DISM command doesn't have the repair functionality that's why you get the error, only Windows 8 and above supports that.

 

You need to download the System Update Readiness Tool (SUR) that matches your Operating System

http://support.microsoft.com/kb/947821

 

Save it to some place, its a big download and eventually you need to run it several times, keep the file in safe place.
Run the tool. Its like an Update but it can take a long time to do the work. You will get an Installation Complete screen when it's done running.

 

After running SUR restart the computer and run SFC /scannow again to see if it continues to report errors or not.

HI sleepy dude,

 

As like u said, I run SUR tool and installed, WINDOWS HOTFIX KB947821 installation completed, after that I tried SFC /scannow, again I tried SFC after restarts no joy.

 

bluescreen (USB bugcode error) also coming now, I tried updating all my drivers using DRIVER PACK SOLUTION but no joy.

 

 

 

Regards,

ANSAL


  • 0

#7
ANSAL

ANSAL

    New Member

  • Topic Starter
  • Member
  • Pip
  • 7 posts

Hi Sleepy Dude,

 

I installed all my pending WINDOWS UPDATES and I tried SFC / scannow and the result shows  "Windows Resource Protection did not find any integrity violations" I think it means the cbs.log issue resolved.

 

After this, I tried "chkdsk c: /f /r /x" and it is showing volume is in use.

 

C:\Windows\system32>chkdsk c: /f /r /x
The type of the file system is NTFS.
Cannot lock current drive.
 
Chkdsk cannot run because the volume is in use by another
process.  Would you like to schedule this volume to be
checked the next time the system restarts? (Y/N) n
 
What would I do next to sort out this?

  • 0

#8
123Runner

123Runner

    Member 4k

  • Member
  • PipPipPipPipPipPipPip
  • 4,527 posts

Re-run the chkdsk and this time tell it (Y) yes.

Reboot the computer and the chkdsk will then run.

The chkdsk utility needs full access to the drive.


  • 1






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP