Cyri 0 Posted April 27, 2011 Does anyone know of a good way to detect when a specific MMC console is running or not? They all run under mmc.exe which makes that task more difficult. Process Explorer shows me that mmc.exe was run with the following command line "C:\Windows\system32\mmc.exe" "C:\Windows\system32\dsa.msc". I did run across the _ProcessProperties() UDF which looks like it can get me the command line of mmc.exe. My question then is whether that's the best way to do it or not? Share this post Link to post Share on other sites
JScript 71 Posted April 27, 2011 I believe so! But If you can find another way, tells me... http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)Somewhere Out ThereJames IngramDownload Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Share this post Link to post Share on other sites
Silverkorn 0 Posted May 18, 2011 (edited) mmc.exe was run with the following command line "C:\Windows\system32\mmc.exe" "C:\Windows\system32\dsa.msc"Well, your answer is there... dsa.msc is the "snap-in" for Microsoft Management Console (mmc.exe), this is why it is seen as a parameter in the command line section.dsa.msc is Active Directory, gpedit.msc is Group Policy Editor, dfrg.msc is Defraging and so on...Go in your %systemroot%\system32\ and sort by File Types, you may reconize most of the MMC extensions.Actually, this is the best way to proceed for remote uses... Edited May 18, 2011 by Silverkorn Share this post Link to post Share on other sites