Wie listen Sie alle Prozesse in der Befehlszeile in Windows auf?
Gibt es unter Unix einen Befehl, der 'ps' entspricht und alle Prozesse auf einem Windows-Computer auflisten kann?
15 answers
Arbeiten mit cmd.exe:
- Wenn Sie Powershell - :
Über WMI:
Wmic-Prozess -
(Sie können auch Remote-Maschinen mit /node:ComputerOrIP
abfragen, und es gibt viel mehr Möglichkeiten, diesen Befehl anzupassen: link)
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2015-07-01 21:17:02
Es gibt ein tool namens Windows Management Instrumentation Command-line-tool (wmic.exe).
Sie können wmic process list
aufrufen, um alle Prozesse anzuzeigen.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2008-09-10 05:56:27
Ich wollte erwähnen, dass WMIC (pams Eintrag) viel mehr kann als . Schauen Sie sich meine WMIC-Snippets-Seite an, bei der es sich um ein Cheatsheet handelt, das viele der gängigen Möglichkeiten zur Verwendung von WMIC zeigt (mit gezeigter Beispielausgabe) hier
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2008-09-15 09:53:20
Tasklist
WMIC / AUSGABE: C: \ ProcessList.txt PROZESS Caption,Commandline,Processid
Oder
WMIC /OUTPUT:C:\ProcessList.txt path win32_process get Caption,Processid,Commandline
Ich habe es unter Windows 7 versucht. Der Befehl lautet: TASKLIST /FI "IMAGENAME eq application_name"
ZB: c:\>TASKLIST /FI "IMAGENAME eq notepad.exe"
Um alle Prozesse mit Portdetails anzuzeigen:
c:\> TASKLIST
Auch um den Prozess zu beenden, können Sie c:\> pskill or tskill processname
ZB: c:\> tskill notepad
Tasklist oder pslist von sysinternals. Auch get-process ist erstaunlich von PowerShell.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2008-09-10 05:57:55
Wenn Sie Powershell, hat es den Befehl ' ps '(es ist Alias Get-Process)
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2008-09-10 07:48:12
Um einen Prozess zu beenden, verwenden Sie:
TASKKILL /F /IM processname.exe
Zum Beispiel:
TASKKILL /F /IM firefox.exe
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2016-11-07 05:46:08
Wenn Sie Windows XP ausführen, versuchen Sie es mit dem Befehl 'tasklist'. Ich habe es mit Vista ausprobiert und es scheint auch zu funktionieren.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2008-09-10 05:52:48
Verwenden Sie diesen Befehl, um alle Prozesse auf dem Windows-Computer anzuzeigen
Tasklist /svc
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2014-09-05 07:30:20
Windows - Eingabeaufforderung öffnen
C:\>tasklist // list all the tasks
C:\>Taskkill /IM firefox.exe /F // Kill task by name
Oder
C:\>Taskkill /PID 26356 /F // kill task by PId
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2018-06-01 04:58:34
Ich hatte unter Windows 2003 SP2 folgendes Problem: Tasklist gab keine Ausgabe für stdout oder stderr zurück, wenn es von einem Prozess aufgerufen wurde, der als Windows-Dienst gestartet wurde (auch unter lokalem Konto). Tasklist mit dem (undokumentierten) Code 128 zurückgegeben.
Vom selben Programm aufgerufen, das als normaler Prozess gestartet wurde (nicht als Dienst), wurde es ausgeführt.
Keine Hilfe, es zu ändern. Ich konnte keinen Grund oder keine Lösung finden, aber stattdessen "pslist /accepteula" von sysinternal verwenden.
Gleiches Problem mit taskkill: Ich musste es whith pskill ersetzen.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2012-05-16 06:58:30
Ich habe ein msproject ( c-Quellcode) gemacht, Archiv ist verfügbar unter : lsproc.zip Projektarchiv
Und exe-Datei: lsproc.exe-Binär -
Dies ist ein Befehlszeilenwerkzeug Ausgang:
lsproc
Thierry Bremard
[email protected]
list binary files and driver with their local path on disks
most of code retreived from msdn site
--------------------
Process ID: 0
--------------------
Process ID: 4
<unknown> (PID: 4)
<unknown>
PageFaultCount : 0x00002E4B
PeakWorkingSetSize : 0x00419000
WorkingSetSize (Mem usage) : 0x0003A000 (232 ko)
QuotaPeakPagedPoolUsage : 0x00000000
QuotaPagedPoolUsage : 0x00000000
QuotaPeakNonPagedPoolUsage : 0x00000000
QuotaNonPagedPoolUsage : 0x00000000
PagefileUsage : 0x00000000
PeakPagefileUsage : 0x00000000
--------------------
Process ID: 764
smss.exe (PID: 764)
\SystemRoot\System32\smss.exe
PageFaultCount : 0x000000D6
PeakWorkingSetSize : 0x00082000
WorkingSetSize (Mem usage) : 0x0006C000 (432 ko)
QuotaPeakPagedPoolUsage : 0x00006C34
QuotaPagedPoolUsage : 0x00001854
QuotaPeakNonPagedPoolUsage : 0x000004D8
QuotaNonPagedPoolUsage : 0x00000280
PagefileUsage : 0x0002C000
PeakPagefileUsage : 0x00030000
--------------------
Process ID: 816
--------------------
Process ID: 844
winlogon.exe (PID: 844)
\??\C:\WINDOWS\system32\winlogon.exe
PageFaultCount : 0x0000261D
PeakWorkingSetSize : 0x00B58000
WorkingSetSize (Mem usage) : 0x0029B000 (2668 ko)
QuotaPeakPagedPoolUsage : 0x0001B054
QuotaPagedPoolUsage : 0x000185A4
QuotaPeakNonPagedPoolUsage : 0x0000C988
QuotaNonPagedPoolUsage : 0x0000B6A0
PagefileUsage : 0x005EC000
PeakPagefileUsage : 0x006C6000
--------------------
...
PeakPagefileUsage : 0x03277000
--------------------
Process ID: 2712
lsproc.exe (PID: 2712)
C:\Documents and Settings\LoginX\Bureau\lsproc.exe
PageFaultCount : 0x000000EC
PeakWorkingSetSize : 0x000F1000
WorkingSetSize (Mem usage) : 0x000E4000 (912 ko)
QuotaPeakPagedPoolUsage : 0x000032B4
QuotaPagedPoolUsage : 0x000032B4
QuotaPeakNonPagedPoolUsage : 0x00000400
QuotaNonPagedPoolUsage : 0x00000398
PagefileUsage : 0x00042000
PeakPagefileUsage : 0x0005C000
There are 131 drivers:
--------------------
1: ntkrnlpa.exe
\WINDOWS\system32\ntkrnlpa.exe
--------------------
2: hal.dll
\WINDOWS\system32\hal.dll
--------------------
3: KDCOM.DLL
\WINDOWS\system32\KDCOM.DLL
--------------------
4: BOOTVID.dll
\WINDOWS\system32\BOOTVID.dll
...
--------------------
129: HTTP.sys
\SystemRoot\System32\Drivers\HTTP.sys
--------------------
130: hiber_WMILIB.SYS
\SystemRoot\System32\Drivers\hiber_WMILIB.SYS
--------------------
131: ntdll.dll
\WINDOWS\system32\ntdll.dll
--------------
Mit WMI und Powershell können Sie Folgendes tun:
Get-WMIObject -Class Win32_Process
Dann können Sie Eigenschaften mit Select-Object
filtern und in der GUI mit Out-GridView
anzeigen.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2020-09-16 07:29:21
Hallo, wenn Sie laufende Prozess-IDs auf einem Windows-Computer auflisten möchten, öffnen Sie einen cmd
- Bildschirm und geben Sie ein:
netstat -aon | more
Scrollen Sie mit der Taste Enter.