locked
How to find the Processor count on Windows XP? RRS feed

  • Question

  • Hi Experts,

    MSINFO32 and Device Manager shows the actual list of cores. We need to find the list of processors. Is there a way to find? Please help.


    Thanks, MPC
    Monday, August 1, 2011 3:20 PM

Answers

  • CHKCPU32 utility is the perfect utility for this purpose. Thanks


    Thanks, MPC
    • Marked as answer by MPC_M Thursday, August 4, 2011 2:04 PM
    Thursday, August 4, 2011 2:01 PM

All replies

  • If you type:

    wmic cpu get caption <Enter>,

    it will only return the actual number of cpu's you have (physical sockets).


    If you found this post helpful, please give it a "Helpful" vote. If it answered your question, remember to mark it as an "Answer".
    Monday, August 1, 2011 3:26 PM
  • You can use a Powershell script that will return the number of physical processors.  The output is just a number.

    (gwmi -Class win32_computersystem).numberofprocessors
    


    If you found this post helpful, please give it a "Helpful" vote. If it answered your question, remember to mark it as an "Answer".
    Monday, August 1, 2011 3:38 PM
  • Thanks BigTeddy. Is there a way to run this on a remote computer? Let us say we want to run on 100 servers from 1 server.
    Thanks, MPC
    Monday, August 1, 2011 4:20 PM
  • The following code will list the processors for a list of computer names in testproc.txt:

     

    gc testproc.txt | % {gwmi -Class win32_computersystem -ComputerName $_ | select name, numberofprocessors}
    

     

    Theoretically, this code should work.  However, I find it returning the number of cores instead on some machines. 

    Test it out and see what sort of results you get!

    There is another property called numberoflogicalprocessors, and this seems to return what's expected.


    If you found this post helpful, please give it a "Helpful" vote. If it answered your question, remember to mark it as an "Answer".
    Monday, August 1, 2011 4:45 PM
  • Thanks. Please let me know is there any powershell cmdlets which would do the job. I would like someone else do this. He doesn't have the permission to run the script.
    Thanks, MPC
    Monday, August 1, 2011 5:11 PM
  • If he doesn't have permissions to run a script then he can just type the command directly into a Powershell console.  You can re-direct the output to a file, as such:

     gc testproc.txt | % {gwmi -Class win32_computersystem -ComputerName $_ | select name, numberofprocessors} | Out-File -append "c:\scripts\no_of_procs.txt



    If you found this post helpful, please give it a "Helpful" vote. If it answered your question, remember to mark it as an "Answer".
    • Proposed as answer by Bigteddy Monday, August 1, 2011 9:49 PM
    • Unproposed as answer by MPC_M Thursday, August 4, 2011 2:00 PM
    Monday, August 1, 2011 5:30 PM
  • CHKCPU32 utility is the perfect utility for this purpose. Thanks


    Thanks, MPC
    • Marked as answer by MPC_M Thursday, August 4, 2011 2:04 PM
    Thursday, August 4, 2011 2:01 PM