mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-10 10:48:31 +02:00
Updated list-window-titles.ps1
This commit is contained in:
parent
abc5a11989
commit
6cfc31ffd4
@ -6,8 +6,8 @@
|
||||
.EXAMPLE
|
||||
PS> ./list-window-titles.ps1
|
||||
|
||||
Id Name MainWindowTitle
|
||||
-- ---- ---------------
|
||||
Id ProcessName MainWindowTitle
|
||||
-- ----------- ---------------
|
||||
11556 Spotify Spotify Free
|
||||
...
|
||||
.LINK
|
||||
@ -17,7 +17,7 @@
|
||||
#>
|
||||
|
||||
try {
|
||||
Get-Process | Where-Object {$_.mainWindowTitle} | Format-Table Id,Name,mainWindowtitle -AutoSize
|
||||
Get-Process | Where-Object {$_.mainWindowTitle} | Format-Table ID,ProcessName,MainWindowTitle -AutoSize
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Loading…
Reference in New Issue
Block a user