Get a List of All the Open Windows on a Computer

#the first one doesn’t get windows explorer’s windows, but the second one does

1) Get-Process | Where-Object {$_.MainWindowTitle -ne “”} | Select-Object MainWindowTitle

2)$a = New-Object -com “Shell.Application”; $b = $a.windows() | select-object LocationName; $b

Leave a Reply

Your email address will not be published. Required fields are marked *