Search code examples
c#mmcmmc3

How to get rid of the "Console Root" node in a MMC 3.0 snapin?


I've been creating snapins with the new MMC 3.0 classes and C#. I can't seem to find any examples of how to get rid of the "Console Root" node when creating the *.msc files. I looked through the examples in the SDK, but I can't seem to find anything for this.

I have seen other snapins that do what I want, but I can't tell what version of MMC they are using.


Solution

  • If I've understood you correctly, this isn't specific to MMC3, but it did take me a while to realise. Right-click on the node, and click New Window from Here. Then switch back to the Console Root window, and close it (Ctrl+F4).

    Inside the .msc, it's //View/BookMark/@NodeID, which needs to be "2" (etc.), instead of "1".