This topic contains 5 replies, has 2 voices, and was last updated by
June 27, 2017 at 4:41 pm #73754
Yes, I know we should upgrade... Unfortunately, I'm auditing a number of client servers that are in production and can't be taken down for the reboot to upgrade PowerShell. I'm trying to display just the name and number of cores for the Processor. I can see them both in the list when I run
but when I run
I don't get any results. This works in other versions... What am I doing wrong in 2.0
June 27, 2017 at 5:08 pm #73759
Get-WmiObject Win32_processor | Select-Object -Property Name,NumberofCores
... client servers that are in production and can't be taken down for the reboot to upgrade PowerShell ...
How do you install updates / patches??
June 27, 2017 at 5:11 pm #73762
We schedule times with the clients for this... This is for an internal audit that the client has nothing to do with. I just need to gather the information... I have hundreds of servers I need to get through right now and just trying to find a way to gather this info quickly. If they were all on the same network it would be easy and I could just use a test server that has a newer version of PS, but that's not an option right now.
June 27, 2017 at 5:15 pm #73763
OK ... did you try the code snippet I posted?
June 27, 2017 at 5:21 pm #73768
I did, and it worked, thank you!
June 27, 2017 at 5:25 pm #73771
_ /(| ( : __\ \ _____ (____) `| (____)| | (____).__| (___)__.|_____
The topic ‘Getting Processor Name and NumberOfCores in PowerShell 2.0’ is closed to new replies.