Unable to resize Microsoft Management Console (MMC) window

Aug 19, 2013 at 1:28 PM

I am using following command to maximize an MMC window.

"Select-Window -ProcessName mmc | Set-WindowActive | Set-WindowPosition -maximize"

The window becomes active but does not maximize.

Below are the details of the window.

ProcessName : mmc
ProcessId : 4240
IsActive : False
Handle : 5374370
Title : Console1 - [Console Root]
Class : MMCMainFrame

It would be great if anyone has solution to this issue
Aug 19, 2013 at 4:22 PM
Your console window has to be elevated to control elevated windows.

That is, MMC always runs elevated ("as administrator"), and although you can find it and set it active, you can't position it or send keys to it etc unless you're also elevated.
Aug 20, 2013 at 6:51 PM
Thanks Jaykul, that solved the issue.