-- PowerShell

powershell로 이벤트로그와 프로세스 구하기

어린왕자악꿍 2011. 8. 17. 11:52

# 최신 10개의 이벤트로그 가져오기

Get-EventLog -newest 10 -logname Application | Select-Object Index, Time, Source, Message | Export-Clixml D:\EventLog.xml

# 100MB 이상 프로세스 구하기

Get-Process | Where-Object { $_.Workingset -gt 100MB } | Select-Object Handles, CPU, ProcessName | ConvertTo-Html | Out-File D:\Process.html