Skip to main content

Invoke-RepairVolume

Summary

Runs Windows volume repair against one or more volumes.

Sample Run

Sample Run 1
Run a scan and repair on the C drive with minimal drive interruption.

Sample Run 2
Run a scan and repair on all available drives, stopping the drives completely during the process.

Dependencies

User Parameters

NameExampleRequiredDescription
DriveLetter- C- "C", "D"- Blank (Targets all available drives)FalseThe target drives you wish to scan or repair
RepairTrue Toggles on the repair of any found issues; stopping the drive only when necessary. false or ensures scanning only.FalseToggles Scan only to Scan and repair.
FullTrue Toggles the -Repair option to be more intrusive, stopping the drive for the entirety of the repair job. False or ensures that Repair is set to the least intrusive method.FalseToggles -Repair from least intrusive to most intrusive.

Process

  1. Validates that the repair and Full parameters are within limits; if not, it logs errors and exits.
  2. Reviews the agnostic content document for the process.

Output

  • Script log