246 Part IV: Classes
Else
WScript.echo defrag
End if
Wscript.Echo "AverageFileSize:"&objitem1.AverageFileSize
Wscript.Echo "FilePercentFragmentation:"&_ objitem1.FilePercentFragmentation
Wscript.Echo "FragmentedFolders: " & objitem1.FragmentedFolders
Wscript.Echo "TotalExcessFragments: " & objitem1.TotalExcessFragments
Wscript.Echo "MFTPercentInUse:"&objitem1.MFTPercentInUse
Wscript.Echo "TotalPageFileFragments:"&_objitem1.TotalPageFileFragments
End Sub
Understanding User Classes
For many administrators, a surprising group of WMI classes is the user classes group. Using
the power of WMI, you can retrieve reams of extremely valuable information about users and
their activities on systems.
Working with Logon Sessions
In the Win32_LogonSess ...