Get all windows of a process in powershell

Question:

I want to list all windows of a process, say Word. This only gives me main window:

I want to also list Document1 here.

Id Name MainWindowTitle


1616 WINWORD Document2 – Microsoft Word

is there any way to access windows other than main one?

Answer:

Thanks to Bacon Bits suggestion I managed to find a solution, but if you have any less cumbersome than this, please share:

Source:

Get all windows of a process in powershell by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply