|
|
Question : How do I read all properties of WMI class using KIX??
|
|
Hi , I,m trying to get all properties of WMI class using KiX2010.460. When i use $CPUSPD = $WinMgt.ExecQuery("Select CurrentClockSpeed from Win32_Processor") For Each $item In $CPUSPD $CPUSPEED = $item.CurrentClockSpeed next ? $CPUSPEED I just get CurrentClockSpeed property How do i get all properties and list them??
|
Answer : How do I read all properties of WMI class using KIX??
|
|
Hi, the properties are as follows:
$item.AddressWidth $item.Architecture $item.Availability $item.Caption $item.ConfigManagerErrorCode $item.ConfigManagerUserConfig $item.CpuStatus $item.CreationClassName $item.CurrentClockSpeed $item.CurrentVoltage $item.DataWidth $item.Description $item.DeviceID $item.ErrorCleared $item.ErrorDescription $item.ExtClock $item.Family $item.InstallDate $item.L2CacheSize $item.L2CacheSpeed $item.LastErrorCode $item.Level $item.LoadPercentage $item.Manufacturer $item.MaxClockSpeed $item.Name $item.OtherFamilyDescription $item.PNPDeviceID Join($item.PowerManagementCapabilities, ",") $item.PowerManagementSupported $item.ProcessorId $item.ProcessorType $item.Revision $item.Role $item.SocketDesignation $item.Status $item.StatusInfo $item.Stepping $item.SystemCreationClassName $item.SystemName $item.UniqueId $item.UpgradeMethod $item.Version $item.VoltageCaps
For info on other Win32 Classes, download Scriptomatic: http://www.microsoft.com/downloads/details.aspx?familyid=09dfc342-648b-4119-b7eb-783b0f7d1178
Regards,
Rob.
|
|
|
|
|