The attached script schedules a weekly /RestoreHealth and /scannow execution to maintain file integrity.
It runs silently and will only prompt if unable to complete either scan or corrupted files are found.

On first run it creates the task to run weekly.
Click image for larger version. 

Name:	Task.PNG 
Views:	27 
Size:	46.0 KB 
ID:	16155
If an Install.wim file is in the same directory, it will use that to repair files offline, otherwise it will use the WU service.
It also creates a log file and appends the results of each run of the component check.
- I have it in the RecoveryImage folder where my Install.wim resides..

Click image for larger version. 

Name:	RecoveryImage.PNG 
Views:	29 
Size:	54.9 KB 
ID:	16152

RestoreHealth.vbs (Minimized windows version)

RestoreHealth.vbs (Silent version)