Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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
  • 966 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,870 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
  • 966 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,467 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