The Item property provides the natIndexth enumerated item as a string. It is the default property.
WshCollection(natIndex) = strEnumeratedItem WshCollection.Item(natIndex) = strEnumeratedItem
Set WshNetwork = Wscript.CreateObject("Wscript.Network") Set oDrives = WshNetwork.EnumNetworkDrives Wscript.Echo oDrives.Item(0) = " "Z:" Wscript.Echo oDrives.Item(1) = "\\Server\Share"