Sys-Admin Forum

PowerShell - найти НЕ Windows сервисы

Можно одной строкой:

Get-WmiObject win32_service | where { $_.Caption -notmatch "Windows" -and $_.PathName -notmatch "Windows" }

Результат:

PS C:\tmp> Get-WmiObject win32_service | where { $_.Caption -notmatch "Windows" -and $_.PathName -notmatch "Windows" }


ExitCode  : 1077
Name      : MozillaMaintenance
ProcessId : 0
StartMode : Manual
State     : Stopped
Status    : OK

ExitCode  : 0
Name      : nxlog
ProcessId : 1432
StartMode : Auto
State     : Running
Status    : OK

ExitCode  : 0
Name      : Parallels Coherence Service
ProcessId : 1472
StartMode : Auto
State     : Running
Status    : OK

ExitCode  : 0
Name      : Parallels Tools Service
ProcessId : 1552
StartMode : Auto
State     : Running
Status    : OK

По теме: