Unable to resize Microsoft Management Console (MMC) window

Aug 19, 2013 at 12:28 PM
Hi,

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
Coordinator
Aug 19, 2013 at 3: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 5:51 PM
Thanks Jaykul, that solved the issue.