Користувальницькькі налаштування

Налаштування сайту


software:os:windows:powershell

Розбіжності

Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.

Посилання на цей список змін

Порівняння попередніх версій Попередня ревізія
Наступна ревізія
Попередня ревізія
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='Memory (MB)';Expression={[math]::Round($_.WorkingSet64/1MB,2)}} |   Select-Object Name, @{Name='Memory (MB)';Expression={[math]::Round($_.WorkingSet64/1MB,2)}} |
   Select-Object -First 15   Select-Object -First 15
-Quick memory overview:+Quick memory overview (data in kilobytes):
   Get-WmiObject Win32_OperatingSystem | Select-Object TotalVisibleMemorySize, FreePhysicalMemory   Get-WmiObject Win32_OperatingSystem | Select-Object TotalVisibleMemorySize, FreePhysicalMemory
 +Calculate free memory percentage:
 +  $os = Get-WmiObject Win32_OperatingSystem
 +  $pctFree = [math]::Round(($os.FreePhysicalMemory / $os.TotalVisibleMemorySize) * 100, 2)
 +  Write-Host "Memory Utilization: $pctFree% Free"  
 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:os:windows:powershell:files|How to work with files and folders]]
software/os/windows/powershell.1734003691.txt.gz · Востаннє змінено: 2024/12/12 13:41 повз charon