Run Chkntfs

Microsoft.Windows.Server.10.0.LogicalDisk.Chkntfs.Task (Task)

Execute a chkntfs command against the logical disk and display the results.

Element properties:

TargetMicrosoft.Windows.Server.10.0.LogicalDisk
AccessibilityPublic
CategoryMaintenance
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
PA ProbeAction System.CommandExecuterProbe Default

Source Code:

<Task ID="Microsoft.Windows.Server.10.0.LogicalDisk.Chkntfs.Task" Target="ServervNext!Microsoft.Windows.Server.10.0.LogicalDisk" Accessibility="Public">
<Category>Maintenance</Category>
<ProbeAction ID="PA" TypeID="System!System.CommandExecuterProbe">
<ApplicationName>%WINDIR%\System32\CMD.EXE</ApplicationName>
<WorkingDirectory/>
<CommandLine>/c $file/checkntfs.cmd$</CommandLine>
<TimeoutSeconds>30</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files>
<File>
<Name>checkntfs.cmd</Name>
<Contents><Script>

@echo off
if exist %WINDIR%\System32\chkntfs.exe (
%WINDIR%\System32\chkntfs.exe "$Target/Property[Type="Windows!Microsoft.Windows.LogicalDevice"]/DeviceID$"
goto end
)
echo chkntfs is not supported on this Operating System.
:end

</Script></Contents>
<Unicode>false</Unicode>
</File>
</Files>
</ProbeAction>
</Task>