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

Select by Class Type Search by Keyword
Show all classes

Category (Kategorie):

Mapped Drives and File Shares

Description (Beschreibung):

The Win32_MappedLogicalDisk WMI class represents network storage devices that are mapped as logical disks on the computer system. The instances returned for this class will be as follows, supposing that user A is enumerating the instances: The provider looks for a logon session of user A on that machine: If there is one (and only one) such logon session, then the provider will return the mapped drives of that session. If there is more than one session for user A on the machine, then no mapped drive instances will be returned (because the provider has no reasonable way of deciding which session to use). If there are no sessions of user A running, and there is a locally logged on user B: If there is a single session for user B, then the provider will impersonate A and return the mapped drives of user B. This case supports the scenario of helpdesk wanting to see the instances of a locally logged on user. Again, if there is more than one session of user B running on the machine, then the provider has no way of deciding which to use. In this case, no mapped drive instances will be returned.

Availability (Verfügbarkeit):

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

Properties (Attribute):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
AccessYesYes---
AvailabilityYesYes---
BlockSizeYesYes---
CaptionYesYes---
CompressedYesYes---
ConfigManagerErrorCodeYesYes---
ConfigManagerUserConfigYesYes---
CreationClassNameYesYes---
DescriptionYesYes---
DeviceIDYesYes---
ErrorClearedYesYes---
ErrorDescriptionYesYes---
ErrorMethodologyYesYes---
FileSystemYesYes---
FreeSpaceYesYes---
InstallDateYesYes---
LastErrorCodeYesYes---
MaximumComponentLengthYesYes---
NameYesYes---
NumberOfBlocksYesYes---
PNPDeviceIDYesYes---
PowerManagementCapabilitiesYesYes---
PowerManagementSupportedYesYes---
ProviderNameYesYes---
PurposeYesYes---
QuotasDisabledYesYes---
QuotasIncompleteYesYes---
QuotasRebuildingYesYes---
SessionIDYesYes---
SizeYesYes---
StatusYesYes---
StatusInfoYesYes---
SupportsDiskQuotasYesYes---
SupportsFileBasedCompressionYesYes---
SystemCreationClassNameYesYes---
SystemNameYesYes---
VolumeNameYesYes---
VolumeSerialNumberYesYes---

Methods (Methoden):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
ResetYesYes---
SetPowerStateYesYes---

Sample Code (Beispiel):

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

Links:

Link zur Original-Microsoft-Dokumentation