Cyri Posted April 27, 2011 Share 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? Link to comment Share on other sites More sharing options...
JScript Posted April 27, 2011 Share 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 Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
Silverkorn Posted May 18, 2011 Share 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 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