mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-21 01:18:18 +02:00
Added lsproc.ps1
This commit is contained in:
parent
38e69e9cb3
commit
6a9cb3060b
10
Scripts/lsproc.ps1
Executable file
10
Scripts/lsproc.ps1
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/snap/bin/powershell
|
||||||
|
#
|
||||||
|
# Syntax: lsproc.ps1
|
||||||
|
# Description: lists the local computer processes
|
||||||
|
# Author: Markus Fleschutz
|
||||||
|
# Source: github.com/fleschutz/PowerShell
|
||||||
|
# License: CC0
|
||||||
|
#
|
||||||
|
Get-Process | Format-Table -Property Id, @{Label="CPU(s)";Expression={$_.CPU.ToString("N")+"%"};Alignment="Right"}, ProcessName -AutoSize
|
||||||
|
exit 0
|
Loading…
Reference in New Issue
Block a user