Misuna Posted March 21, 2014 Share Posted March 21, 2014 (edited) 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 ) Edited March 21, 2014 by Misuna Link to comment Share on other sites More sharing options...
UEZ Posted March 21, 2014 Share Posted March 21, 2014 (edited) 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 March 21, 2014 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 More sharing options...
mikell Posted March 21, 2014 Share Posted March 21, 2014 (edited) 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 March 21, 2014 by mikell Link to comment Share on other sites More sharing options...
Misuna Posted March 22, 2014 Author Share Posted March 22, 2014 Thanks a lot Link to comment Share on other sites More sharing options...
water Posted March 22, 2014 Share Posted March 22, 2014 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 - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now