Win32_DiskDrive
class diz sobre o NeedsCleaning
property:
NeedsCleaning
Data type: boolean
Access type: Read-onlyIf True, the media access device needs cleaning. Whether manual or automatic cleaning is possible is indicated in the Capabilities property.
This property is inherited from CIM_MediaAccessDevice.
Por outro lado, você pode encontrar a propriedade VolumeDirty
em Win32_LogicalDisk
class :
VolumeDirty
Data type: boolean
Access type: Read-only
Qualifiers: MappingStrings ("FSCTL_IS_VOLUME_DIRTY
")If True, the disk requires ChkDsk to be run at the next restart. This property is only applicable to those instances of logical disk that represent a physical disk in the machine. It is not applicable to mapped logical drives.
Exemplos :
==> wmic diskdrive get Capabilities,CapabilityDescriptions,DeviceID,NeedsCleaning
Capabilities CapabilityDescriptions DeviceID NeedsCleaning
{3, 4} {"Random Access", "Supports Writing"} \.\PHYSICALDRIVE1
{3, 4} {"Random Access", "Supports Writing"} \.\PHYSICALDRIVE0
==> wmic logicaldisk get DeviceID,DriveType,FileSystem,VolumeDirty
DeviceID DriveType FileSystem VolumeDirty
C: 3 NTFS
D: 3 NTFS
E: 5 UDF FALSE
P: 4 NTFS
==>