windows 2012 R2 数据中心上的获取进程
Get-Process on windows 2012 R2 Datacenter
我正在尝试 运行 Get-Process
2012 R2 上的 Powershell commandlet,但输出不显示所有进程的公司名称,如下所示:
我需要在 windows 上打补丁还是这是默认行为?
Get-Process | select Name, Company
输出:
spoolsv
svchost
svchost
svchost
svchost
svchost
svchost
svchost
svchost
svchost
svchost
svchost
svchost
svchost
System
taskhostex
taskhostex Microsoft Corporation
Taskmgr
vmtoolsd
vmtoolsd
wininit
winlogon
winlogon
winlogon
WmiPrvSE
WmiPrvSE
WmiPrvSE
WUDFHost
如果你想显示重复过程之一,你应该使用 -unique
Get-Process | select name,Company -Unique
如果你想获取进程数
Get-Process | select name,Company | Group-Object name
问题已解决:
脚本必须 运行 作为管理员
这里建议:
Powershell scripts in Windows 2012R2 not running
我正在尝试 运行 Get-Process
2012 R2 上的 Powershell commandlet,但输出不显示所有进程的公司名称,如下所示:
我需要在 windows 上打补丁还是这是默认行为?
Get-Process | select Name, Company
输出:
spoolsv
svchost
svchost
svchost
svchost
svchost
svchost
svchost
svchost
svchost
svchost
svchost
svchost
svchost
System
taskhostex
taskhostex Microsoft Corporation
Taskmgr
vmtoolsd
vmtoolsd
wininit
winlogon
winlogon
winlogon
WmiPrvSE
WmiPrvSE
WmiPrvSE
WUDFHost
如果你想显示重复过程之一,你应该使用 -unique
Get-Process | select name,Company -Unique
如果你想获取进程数
Get-Process | select name,Company | Group-Object name
问题已解决:
脚本必须 运行 作为管理员
这里建议:
Powershell scripts in Windows 2012R2 not running