Jump to content

WMI Query Win32_Processor


amin84
 Share

Recommended Posts

  • Moderators

@leomoon Whenever you are dealing with WMI classes, the AutoIt Script-O-Matic tool is invaluable

Not only does it give you a nice GUI for browsing through the different classes, it shows you example AutoIt code for interacting with that class:

WMIPNG.PNG.f2f314713c3d9d93811779bd92d8adf1.PNG

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

This is another option:

#include <Constants.au3>
$DSK = Run('cmd', '', @SW_HIDE, $STDIN_CHILD + $STDOUT_CHILD)
    Do
        $Read = StdoutRead($DSK, True, False)
        $Str = StringInStr($Read, 'Microsoft Windows')
    Until $Str <> 0
    StdinWrite($DSK, "wmic cpu get name" & @CRLF)
    Do
        $Read = StdoutRead($DSK, True, False)
        $Str1 = StringInStr($Read, 'Name', 0, 1)
    Until $Str1 <> 0
    Sleep(500)
    $Read = StdoutRead($DSK, True, False)
    $Spl = StringSplit($Read, 'Name', 1)
    If $Spl <> @error Then
        $SplR2 = StringLeft($Spl[2], StringInStr($Spl[2], @CRLF, 0, -1))
        $SplR2 = StringStripWS($SplR2, 7)
    Else
        $SplR2 = 'NULL'
    EndIf
    StdioClose($DSK)
    MsgBox(64, 'Information',  $SplR2 )

 

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

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

×
×
  • Create New...