meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| windows:powershell:start [2026/06/15 10:00] – titannet | windows:powershell:start [2026/06/15 13:51] (current) – titannet | ||
|---|---|---|---|
| Line 15: | Line 15: | ||
| Get-Service " | Get-Service " | ||
| + | Stop-Process -Name notepad -Force | ||
| + | Get-Process | Select-Object Name,ID,CPU | ||
| </ | </ | ||
| Line 49: | Line 51: | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ===== Event Logs ===== | ||
| + | |||
| + | <code powershell> | ||
| + | Get-EventLog -LogName Application -Newest 50 | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | ===== Export data ===== | ||
| + | |||
| + | <code powershell> | ||
| + | Get-Process | Export-Csv -Path processes.csv | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Sorting & Filtering ===== | ||
| + | |||
| + | <code powershell> | ||
| + | Get-Process | Sort-Object -Property CPU | ||
| + | Get-Process | Where-Object { $_.CPU -gt 10 } | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||