On Windows, can we obtain from the command line a process's command line arguments without installing any additional software like the Process Explorer of the Windows Sysinternal? As documented by a Stack Overflow discussion, the answer is Yes, via WMIC. Here are two examples,
- List all processes and their command line arguments
WMIC path win32_process get Caption,Processid,Commandline
- List a process, e.g., chrome.exe, and its command line arguments
WMIC path win32_process where "caption='chrome.exe'" get Caption,Processid,Commandline