Run Chkdsk with Spot Fix option
Microsoft.Windows.Server.2012.LogicalDisk.Chkdsk.SpotFix.Task (Task)
Execute a spot fixing against the logical disk and display the results
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.Windows.Server.2012.LogicalDisk.Chkdsk.SpotFix.Task" Target="WindowsServer!Microsoft.Windows.Server.6.2.LogicalDisk" Accessibility="Public">
<Category>Maintenance</Category>
<ProbeAction ID="PA" TypeID="System!System.CommandExecuterProbe">
<ApplicationName>%WINDIR%\System32\chkdsk.exe</ApplicationName>
<WorkingDirectory/>
<CommandLine>"$Target/Property[Type="Windows!Microsoft.Windows.LogicalDevice"]/DeviceID$" /spotfix</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</ProbeAction>
</Task>