you would have to change to c: first (assuming that is where your windows install is) and you don't need the word "costa"

Code:
X:\Sources>c:

C:\>dism /image:c:\ /cleanup-image /restorehealth
The DISM syntax is explained here DISM - Deployment Image Servicing and Management - you may want to give it a read.

You may want to use this method to do /revertpendingactions if you can't boot after installing some upgrade.
Getting out of a no boot situation after installing updates on Windows 7-2008R2 - The Windows Servicing Guy - Site Home - TechNet Blogs

If you need to do sfc at boot it is explained here SFC /SCANNOW : Run in Command Prompt at Boot - Windows 7 Help Forums