I'm making a list of infomation that i what to display. But anytime i run the line that is needed to show the info, it's gonna place 2 blank lines over the output.
Code looks like this
$Pro = Get-WmiObject -Class win32_processor
$pro | select-Object Name,NumberofCores,NumberOfLogicalProcessors | format-list
Is there something else i can do to make it remove the 2 lines from the output? (Can't show the blank lines because they don't show)
Name : Intel(R)
NumberOfCores : x
NumberOfLogicalProcessors : x