Jump to content
Sign in to follow this  
Misuna

Hardware info

Recommended Posts

Misuna

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

Share this post


Link to post
Share on other sites
UEZ

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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites
mikell

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

Share this post


Link to post
Share on other sites
Misuna

Thanks  a lot :thumbsup:

Share this post


Link to post
Share on other sites
water

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


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
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
Sign in to follow this  

×