Tasklist
Tasklist – polecenie wyświetlające listę procesów uruchomionych na komputerze lokalnym lub zdalnym. Pozwala je segregować według określonych filtrów i zapisywać do plików
Ważne parametry
- /s – nazwa lub adres IP komputera, którego zadania chcemy sprawdzić
- /u – pozwala sprawdzić innego użytkownika (domena/użytkownik), czasami wymaga /p – hasła
- /svc – wyświetla wszystkie usługi dla każdego zadania (ang. task)
- /m – wyświetla, jakie pliki .dll są używane przez zadanie
- /fo – określa, jak ma być wyświetlana lista:
- table – tabela (standardowe wyświetlanie)
- list – lista
- csv – wypisuje wszystko po kolei
- /fi – filtry:
- Imagename – przełączniki – eq, ne (jako wartość należy podać łańcuch)
- PID – przełączniki – eq, ne, gt, lt, ge, le (jako wartość należy podać liczbę całkowitą dodatnią)
- Session – przełączniki – eq, ne, gt, lt, ge, le (jako wartość należy podać jakąkolwiek istniejący numer sesji)
- SessionName – przełączniki – eq, ne (jako wartość należy podać łańcuch)
- Status – przełączniki – eq, ne (jako wartość należy podać RUNNING | NOT RESPONDING)
- CPUTime – przełączniki – eq, ne, gt, lt, ge, le (jako wartość należy podać Time hh:mm:ss)
- MemUsage – przełączniki – eq, ne, gt, lt, ge, le (jako wartość należy podać liczbę całkowitą dodatnią)
- Username – przełączniki – eq, ne (jako wartość należy podać łańcuch)
- Services – przełączniki – eq, ne
- Windowtitle – przełączniki – eq, ne
- Modules – przełączniki – eq, ne
Przełączniki
- eq – ang. equal – równy (=)
- ne – ang. not equal – różny
- gt – ang. greater – większy
- lt – ang. least – mniejszy
- ge – ang. greater equal – większy równy
- le – ang. least equal – mniejszy równy
Przykłady użycia
- zapisanie do pliku
tasklist /svc > c:\nazwa.txt
- wyświetlenie procesów, które biorą więcej pamięci niż 300KB
tasklist /fi "memusage gt 300"
- można też łączyć kilka filtrów i poleceń
tasklist /fi "memusage gt 3000" /fi "memusage lt 7000" /fo list > c:\nazwa.txt
Spowoduje to zapisanie (do pliku c:\nazwa.txt) w postaci listy zadań, które zabierają więcej pamięci niż 3000 kB, a mniej niż 7000 kB.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.