Get-Process | Format-Table ProcessorAffinity, *
mostra ProcessorAffinity vazio para alguns processos no meu Windows-8 / 64bit padrão, mesmo no PowerShell (ISE) elevado .
Além disso, Process.ProcessName
Property (== Name
AliasProperty ) não inclui a extensão .exe
:
The
ProcessName
property holds an executable file name, such as Outlook, that does not include the.exe
extension or the path. It is helpful for getting and manipulating all the processes that are associated with the same executable file.
Exemplos
PowerShell_ISE, usuário regular :
PS D:\PShell> (Get-Process * |
Select-Object Name, ProcessorAffinity) |
Group-Object -Property ProcessorAffinity |
Format-Table -AutoSize # merely for better readability
Count Name Group
----- ---- -----
41 {@{Name=afwServ; ProcessorAffinity=}, @{Name=AppleMobileDeviceService; Proces...
28 3 {@{Name=avgui; ProcessorAffinity=3}, @{Name=avguix; ProcessorAffinity=3}, @{N...
PowerShell como administrador :
PS C:\Windows\system32> (Get-Process * |
>> Select-Object Name, ProcessorAffinity) |
>> Group-Object -Property ProcessorAffinity |
>> Format-Table -AutoSize # merely for better readability
Count Name Group
----- ---- -----
10 {@{Name=afwServ; ProcessorAffinity=}, @{Name=aswidsagenta; ProcessorAffinity...
59 3 {@{Name=AppleMobileDeviceService; ProcessorAffinity=3}, @{Name=avgsvca; Proc...