amin84 Posted October 11, 2018 Posted October 11, 2018 Hello, I'm having trouble getting information from Win32_Processor:https://docs.microsoft.com/en-us/windows/desktop/CIMWin32Prov/win32-processor How does this WMI Query work? Let's say I need to query VMMonitorModeExtensions, Level, ProcessorId, and ProcessorType. How would this work? Thanks.
FrancescoDiMuro Posted October 11, 2018 Posted October 11, 2018 (edited) @leomoon An example of how to use WMI Object in AutoIt could be found here Edited October 11, 2018 by FrancescoDiMuro amin84 1 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
Moderators JLogan3o13 Posted October 12, 2018 Moderators Posted October 12, 2018 @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: Xandy and amin84 2 "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!
careca Posted October 13, 2018 Posted October 13, 2018 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
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