執行 Chkntfs

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

對邏輯磁碟執行 Chkntfs 並顯示結果

Knowledge Base article:

摘要

此工作會執行 "CHKNTFS" 命令列公用程式,以顯示當電腦啟動時是否排定對檔案配置表 (FAT)、FAT32 或 NTFS 磁碟區執行自動系統檢查。

Element properties:

TargetMicrosoft.Windows.Server.6.2.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.6.2.LogicalDisk.Chkntfs.Task" Target="WindowsServer!Microsoft.Windows.Server.6.2.LogicalDisk" Accessibility="Public">
<Category>Maintenance</Category>
<ProbeAction ID="PA" TypeID="System!System.CommandExecuterProbe">
<ApplicationName>%WINDIR%\System32\chkntfs.exe</ApplicationName>
<WorkingDirectory/>
<CommandLine>"$Target/Property[Type="Windows!Microsoft.Windows.LogicalDevice"]/DeviceID$"</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</ProbeAction>
</Task>