Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.
| Порівняння попередніх версій Попередня ревізія Наступна ревізія | Попередня ревізія | ||
|
software:os:windows:powershell [2024/12/12 13:41] charon [How to analyze system performance with PowerShell] |
software:os:windows:powershell [2025/12/30 13:13] (поточний) charon |
||
|---|---|---|---|
| Рядок 23: | Рядок 23: | ||
| Select-Object Name, @{Name=' | Select-Object Name, @{Name=' | ||
| Select-Object -First 15 | Select-Object -First 15 | ||
| - | Quick memory overview: | + | Quick memory overview |
| Get-WmiObject Win32_OperatingSystem | Select-Object TotalVisibleMemorySize, | Get-WmiObject Win32_OperatingSystem | Select-Object TotalVisibleMemorySize, | ||
| + | Calculate free memory percentage: | ||
| + | $os = Get-WmiObject Win32_OperatingSystem | ||
| + | $pctFree = [math]:: | ||
| + | Write-Host " | ||
| Get 50 last messages from system EventLog: | Get 50 last messages from system EventLog: | ||
| - | Get-EventLog -LogName System -EntryType Error, Warning -Newest 50 | + | Get-EventLog -LogName System -EntryType Error, Warning -Newest 50 |
| + | Show uptime (old Windows versions): | ||
| + | (New-TimeSpan -Start (Get-CimInstance Win32_OperatingSystem).LastBootUpTime -End (Get-Date)) | ||
| + | |||
| + | ===== Working with files and folders ===== | ||
| + | [[software: | ||