Adoray

cpus

Sep 12th, 2016
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. $cpu = @(Get-WmiObject -Class Win32_processor -Computername $Computer -ea stop)
  2. $c_socket = $cpu.count
  3. $c_core = $cpu[0].NumberOfCores * $c_socket
  4. $c_logical = $cpu[0].NumberOfLogicalProcessors * $c_socket
Advertisement
Add Comment
Please, Sign In to add comment