Skip to content

Instantly share code, notes, and snippets.

@BanterBoy
Last active July 25, 2018 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BanterBoy/296de5727a9a8a4ce984ed53d183521e to your computer and use it in GitHub Desktop.
Save BanterBoy/296de5727a9a8a4ce984ed53d183521e to your computer and use it in GitHub Desktop.
Snippet used to capture the title bar for all active windows for all foreground processes
$p = @(Get-Process -Name *)
$p | Select-Object -Property MainWindowTitle | Where-Object { $_.MainWindowTitle -match "\w+" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment