by Karthikeyan (187 Submissions)
Category: Miscellaneous
Compatability: VB Script
Difficulty: Unknown Difficulty
Originally Published: Thu 29th July 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Get the information about System Cache Memory using Win32_CacheMemory WMI Class
'Generated using 'WMI Win32 Class Autoscript Generator' - Developed by Karthikeyan
'Homepage: http://www.geocities.com/marskarthik
On Error Resume Next
Computer = "."
Set OutFile = CreateObject("WScript.Shell")
Const ForAppending = 2
Set FileSystem = CreateObject("Scripting.FileSystemObject")
Set TextFile = FileSystem.OpenTextFile ("c:\Win32_CacheMemory.txt", ForAppending, True)
TextFile.WriteLine "Script for Win32_CacheMemory Class by Karthikeyan"
TextFile.WriteLine
Set WMIService = GetObject("winmgmts:\\" & Computer & "\root\cimv2")
Set Items = WMIService.ExecQuery("Select * from Win32_CacheMemory",,48)
For Each SubItems in Items
TextFile.WriteLine "********************************************************************"
TextFile.WriteLine "Access: " & SubItems.Access
TextFile.WriteLine "AdditionalErrorData: " & SubItems.AdditionalErrorData
TextFile.WriteLine "Associativity: " & SubItems.Associativity
TextFile.WriteLine "Availability: " & SubItems.Availability
TextFile.WriteLine "BlockSize: " & SubItems.BlockSize
TextFile.WriteLine "CacheSpeed: " & SubItems.CacheSpeed
TextFile.WriteLine "CacheType: " & SubItems.CacheType
TextFile.WriteLine "Caption: " & SubItems.Caption
TextFile.WriteLine "ConfigManagerErrorCode: " & SubItems.ConfigManagerErrorCode
TextFile.WriteLine "ConfigManagerUserConfig: " & SubItems.ConfigManagerUserConfig
TextFile.WriteLine "CorrectableError: " & SubItems.CorrectableError
TextFile.WriteLine "CreationClassName: " & SubItems.CreationClassName
TextFile.WriteLine "CurrentSRAM: " & SubItems.CurrentSRAM
TextFile.WriteLine "Description: " & SubItems.Description
TextFile.WriteLine "DeviceID: " & SubItems.DeviceID
TextFile.WriteLine "EndingAddress: " & SubItems.EndingAddress
TextFile.WriteLine "ErrorAccess: " & SubItems.ErrorAccess
TextFile.WriteLine "ErrorAddress: " & SubItems.ErrorAddress
TextFile.WriteLine "ErrorCleared: " & SubItems.ErrorCleared
TextFile.WriteLine "ErrorCorrectType: " & SubItems.ErrorCorrectType
TextFile.WriteLine "ErrorData: " & SubItems.ErrorData
TextFile.WriteLine "ErrorDataOrder: " & SubItems.ErrorDataOrder
TextFile.WriteLine "ErrorDescription: " & SubItems.ErrorDescription
TextFile.WriteLine "ErrorInfo: " & SubItems.ErrorInfo
TextFile.WriteLine "ErrorMethodology: " & SubItems.ErrorMethodology
TextFile.WriteLine "ErrorResolution: " & SubItems.ErrorResolution
TextFile.WriteLine "ErrorTime: " & SubItems.ErrorTime
TextFile.WriteLine "ErrorTransferSize: " & SubItems.ErrorTransferSize
TextFile.WriteLine "FlushTimer: " & SubItems.FlushTimer
TextFile.WriteLine "InstallDate: " & SubItems.InstallDate
TextFile.WriteLine "InstalledSize: " & SubItems.InstalledSize
TextFile.WriteLine "LastErrorCode: " & SubItems.LastErrorCode
TextFile.WriteLine "Level: " & SubItems.Level
TextFile.WriteLine "LineSize: " & SubItems.LineSize
TextFile.WriteLine "Location: " & SubItems.Location
TextFile.WriteLine "MaxCacheSize: " & SubItems.MaxCacheSize
TextFile.WriteLine "Name: " & SubItems.Name
TextFile.WriteLine "NumberOfBlocks: " & SubItems.NumberOfBlocks
TextFile.WriteLine "OtherErrorDescription: " & SubItems.OtherErrorDescription
TextFile.WriteLine "PNPDeviceID: " & SubItems.PNPDeviceID
TextFile.WriteLine "PowerManagementCapabilities: " & SubItems.PowerManagementCapabilities
TextFile.WriteLine "PowerManagementSupported: " & SubItems.PowerManagementSupported
TextFile.WriteLine "Purpose: " & SubItems.Purpose
TextFile.WriteLine "ReadPolicy: " & SubItems.ReadPolicy
TextFile.WriteLine "ReplacementPolicy: " & SubItems.ReplacementPolicy
TextFile.WriteLine "StartingAddress: " & SubItems.StartingAddress
TextFile.WriteLine "Status: " & SubItems.Status
TextFile.WriteLine "StatusInfo: " & SubItems.StatusInfo
TextFile.WriteLine "SupportedSRAM: " & SubItems.SupportedSRAM
TextFile.WriteLine "SystemCreationClassName: " & SubItems.SystemCreationClassName
TextFile.WriteLine "SystemLevelAddress: " & SubItems.SystemLevelAddress
TextFile.WriteLine "SystemName: " & SubItems.SystemName
TextFile.WriteLine "WritePolicy: " & SubItems.WritePolicy
TextFile.WriteLine "********************************************************************"
Next
TextFile.Close
OutFile.Run "notepad.exe c:\Win32_CacheMemory.txt",1,True
No comments have been posted about Get the information about System Cache Memory using Win32_CacheMemory WMI Class. Why not be the first to post a comment about Get the information about System Cache Memory using Win32_CacheMemory WMI Class.