1 2 3 4 5 6 7 8 9 10 |
while(1) { Get-Date | Out-File analisis.txt -Append (Get-WmiObject -Class Win32_Thread).count | Out-File analisis.txt -Append (Get-Process).count | Out-File analisis.txt -Append "-------------------------------------------------------" | Out-File analisis.txt -Append notepad .\analisis.txt Start-Sleep -Seconds 5 Stop-Process -Name notepad } |