Sign in to follow this  
Followers 0
Cyri

Detect specific MMC?

3 posts in this topic

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



#3 ·  Posted (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 by Silverkorn

Share this post


Link to post
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
Sign in to follow this  
Followers 0