Renamed some files

This commit is contained in:
Markus Fleschutz
2020-10-10 16:35:22 +00:00
parent de9632260b
commit e12f1961b4
4 changed files with 6 additions and 6 deletions

13
Scripts/list-processes.ps1 Executable file
View File

@ -0,0 +1,13 @@
#!/snap/bin/powershell
#
# Syntax: ./list-processes.ps1
# Description: lists the local computer processes
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
try {
Get-Process | Format-Table -Property Id, @{Label="CPU(s)";Expression={$_.CPU.ToString("N")+"%"};Alignment="Right"}, ProcessName -AutoSize
exit 0
} catch { Write-Error $Error[0] }
exit 1