Chapter 11: Using Operating System Classes 245
Function FunTime(wmiTime)
Dim objSWbemDateTime 'holds an swbemDateTime object.
Set objSWbemDateTime = CreateObject("WbemScripting.SWbemDateTime")
objSWbemDateTime.Value=
wmiTime
FunTime = objSWbemDateTime.GetVarDate
End Function
Monitoring Storage
The WMI storage group of classes continues to evolve as more classes are added. Eleven
classes are in this category, most dealing with shadow storage or user quotas. One new and
exciting class is available in Windows Server 2003: the Win32_Volume class. It is a mega class
that has 42 properties and 9 methods. The methods are not lame methods, either; they are
awesome, exciting methods such as Defrag, Format, Chkdsk, and AddMount. The Windows
storag ...