meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| windows:powershell:start [2026/06/12 08:11] – titannet | windows:powershell:start [2026/06/15 13:51] (current) – titannet | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| + | <code powershell> | ||
| + | Get-Service " | ||
| + | |||
| + | Stop-Process -Name notepad -Force | ||
| + | Get-Process | Select-Object Name,ID,CPU | ||
| + | |||
| + | </ | ||
| Line 44: | 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 } | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||