powershell2

PS C:\Users\fgy> tasklist /fi "imagename eq chrome.exe"


PS C:\Windows\system32> Get-Command -CommandType cmdlet -TotalCount 3

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Cmdlet          Export-ModuleMember                                3.0.0.0    Microsoft.PowerShell.Core
Cmdlet          Get-Command                                        3.0.0.0    Microsoft.PowerShell.Core
Cmdlet          Get-Help                                           3.0.0.0    Microsoft.PowerShell.Core
PS C:\Users\fgy> Get-CimInstance -Query "SELECT * from Win32_Process WHERE name LIKE 'a%'"

ProcessId Name               HandleCount WorkingSetSize VirtualSize
--------- ----               ----------- -------------- -----------
1352      atiesrxx.exe       128         5074944        30732288
1508      atieclxx.exe       185         9027584        97927168
1876      AlibabaProtect.exe 545         33296384       128606208
4480      Apoint.exe         397         19505152       148824064
4820      ApMsgFwd.exe       69          4734976        50577408
924       ApntEx.exe         106         5890048        87404544

猜你喜欢

转载自www.cnblogs.com/createyuan/p/12347595.html