Jump to content

Hardware info


Recommended Posts

Hi

So i recently asked how to get the name of your CPU shown in a gui, but I have a few other quistens too. I can't find a way that works to show RAM speed, name and brand of your motherboard and name and brand of your GPU. Is there any way to do so? (Of course there is, I just don't know how :sweating: )

Edited by Misuna
Link to comment
Share on other sites

WMI is a mighty interface to get plenty of information about your system. Use Scriptomatic to get the available WMI classes on your system.

Might be that some values are not available in WMI like RAM speed.

 

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

Example

$text = "Motherboard" & @CRLF & "-------------------------------------" & @CRLF
Dim $Obj_WMIService = ObjGet("winmgmts:\\" & "localhost" & "\root\cimv2")
Dim $Obj_Services = $Obj_WMIService.ExecQuery("Select * from Win32_ComputerSystem")
Local $Obj_Item
For $Obj_Item In $Obj_Services
    $manufacturer =  $Obj_Item.Manufacturer
    $model = $Obj_Item.Model
Next
$text &= $manufacturer & @CRLF & $model & @CRLF
MsgBox(0,"", $text)

Or

$text = "GPU" & @CRLF & "-------------------------------------" & @CRLF
Dim $Obj_WMIService = ObjGet("winmgmts:\\" & "localhost" & "\root\cimv2")
Dim $Obj_Services = $Obj_WMIService.ExecQuery("Select * from Win32_VideoController")
Local $Obj_Item
For $Obj_Item In $Obj_Services
    $text &= $Obj_Item.Name
Next
MsgBox(0,"", $text)

Or

$text = "RAM" & @CRLF & "-------------------------------------" & @CRLF
Dim $Obj_WMIService = ObjGet("winmgmts:\\" & "localhost" & "\root\cimv2")
Dim $Obj_Services = $Obj_WMIService.ExecQuery("Select * from Win32_PhysicalMemory")
Local $Obj_Item
For $Obj_Item In $Obj_Services
    $text &= $Obj_Item.DeviceLocator & " - " & $Obj_Item.Capacity & " - " & $Obj_Item.Speed & @crlf
Next
MsgBox(0,"", $text)

:)

Edited by mikell
Link to comment
Share on other sites

I recommend this >thread. Shows how to retrieve all kind of system information.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...