Invoke-RepairVolume
Summary
Runs Windows volume repair against one or more volumes.
Sample Run
Run a scan and repair on the C drive with minimal drive interruption.

Run a scan and repair on all available drives, stopping the drives completely during the process.
Dependencies
User Parameters
| Name | Example | Required | Description | 
|---|---|---|---|
| DriveLetter | - C- "C", "D"- Blank (Targets all available drives) | False | The target drives you wish to scan or repair | 
| Repair | TrueToggles on the repair of any found issues; stopping the drive only when necessary.falseor ensures scanning only. | False | Toggles Scan only to Scan and repair. | 
| Full | TrueToggles the -Repair option to be more intrusive, stopping the drive for the entirety of the repair job.Falseor ensures that Repair is set to the least intrusive method. | False | Toggles -Repair from least intrusive to most intrusive. | 
Process
- Validates that the repair and Full parameters are within limits; if not, it logs errors and exits.
- Reviews the agnostic content document for the process.
Output
- Script log