Set-ProcessCPUAffinity Set the Processor affinity for a running Process by specifying the CPU Cores that it can run on, and the name or PID of a Process(s).