您的位置:首页 > 运维架构 > Shell

Powreshell.exe to get full commandline of a specified process

2014-11-13 00:35 465 查看
can get info from local host or remote machine( need acces permission.)

Get-WmiObject Win32_Process -ComputerName localhost -Filter "Name like 'notepad%'" | Format-List -Property ProcessName, Path, CommandLine, WorkingSetSize

ProcessName : notepad.exe

Path : C:\Windows\system32\notepad.exe

CommandLine : "C:\Windows\system32\notepad.exe" abc.ext

WorkingSetSize : 8519680
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: