Adoray

cpu2

Sep 12th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. $cpu = @(Get-WmiObject -Class Win32_processor -Computername Get-Content "C:\Users\rmisener\ownCloud\Indy\Apps\!Scripts & Registry Hacks\PowerShell\Get-WMI-Cores\serverlist.txt" $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