Reference for Win32_LogicalDisk
(Diese Seite wurde noch nicht auf das neue Layout umgestellt!)

Select by Class Type Search by Keyword
Show all classes

Category (Kategorie):

Disks and Storage

Description (Beschreibung):

The Win32_LogicalDisk WMI class represents a data source that resolves to an actual local storage device on a Windows system.

Availability (Verfügbarkeit):

WMI Class NameWindows Server 2003Windows XP ProfessionalWindows 2000Windows NT 4.0Windows 98
Win32_LogicalDiskYesYesYesYesYes

Properties (Attribute):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
AccessYesYesYesYesYes
AvailabilityYesYesYesYesYes
BlockSizeYesYesYesYesYes
CaptionYesYesYesYesYes
CompressedYesYesYesYesYes
ConfigManagerErrorCodeYesYesYesYesYes
ConfigManagerUserConfigYesYesYesYesYes
CreationClassNameYesYesYesYesYes
DescriptionYesYesYesYesYes
DeviceIDYesYesYesYesYes
DriveTypeYesYesYesYesYes
ErrorClearedYesYesYesYesYes
ErrorDescriptionYesYesYesYesYes
ErrorMethodologyYesYesYesYesYes
FileSystemYesYesYesYesYes
FreeSpaceYesYesYesYesYes
InstallDateYesYesYesYesYes
LastErrorCodeYesYesYesYesYes
MaximumComponentLengthYesYesYesYesYes
MediaTypeYesYesYesYesYes
NameYesYesYesYesYes
NumberOfBlocksYesYesYesYesYes
PNPDeviceIDYesYesYesYesYes
PowerManagementCapabilitiesYesYesYesYesYes
PowerManagementSupportedYesYesYesYesYes
ProviderNameYesYesYesYesYes
PurposeYesYesYesYesYes
QuotasDisabledYesYes---
QuotasIncompleteYesYes---
QuotasRebuildingYesYes---
SizeYesYesYesYesYes
StatusYesYesYesYesYes
StatusInfoYesYesYesYesYes
SupportsDiskQuotasYesYes---
SupportsFileBasedCompressionYesYesYesYesYes
SystemCreationClassNameYesYesYesYesYes
SystemNameYesYesYesYesYes
VolumeDirtyYesYes---
VolumeNameYesYesYesYesYes
VolumeSerialNumberYesYesYesYesYes

Methods (Methoden):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
ChkdskYesYes---
ExcludeFromAutochkYesYes---
ResetYesYesYesYesYes
ScheduleAutoChkYesYes---
SetPowerStateYesYesYesYesYes

Sample Code (Beispiel):

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_LogicalDisk")
For Each objItem in colItems
    Wscript.Echo "Caption: " & objItem.Caption
Next

Links:

Link zur Original-Microsoft-Dokumentation