How can I get a List of CPU's and Installed Printers, Last Boot-up Time Answer
Get a List of CPU’s & Installed Printers, Last boot-up Time
In this lecture we are going to use Powershell to perform several useful tasks starting with getting a list of CPU’s on your local or remote computer.
From the Host open PowerShell ISE in admin mode.
Go ahead and copy and paste the Get-WMIObject command into PowerShell
(Get-WMIObject CIM_Processor).Name
Here is the explanation :
The command Get-WmiObject CIM_Processor is used to retrieve information about the computer's processor(s) using Windows Management Instrumentation (WMI). It queries the "CIM_Processor" class, which contains various properties related to the computer's CPU(s).
.Name is used to access a specific property of the retrieved object. In this case, it's accessing the "Name" property of the processor(s). The "Name" property typically contains information about the processor's name or description, which often includes details about the CPU model and specifications.
So, when you run Get-WmiObject CIM_Processor).Name, it will return the name or description of the processor(s) installed in your computer as a text string. This can be useful when you need to identify and gather information about the CPU(s) in a PowerShell script or command.
and there is my i7 8700 CPU and the CPU speed is 3.20GHZ
Get a list of installed Printers
For this command, we are going to take a look at the installed printers on a local or remote computer.
Go ahead and copy and paste the Get-WMIObject Win32_Printer command into powershell
(Get-WMIObject "Win32_Printer").name
Here is the explanation:
This PowerShell command is used to retrieve and display the names of all printers installed on your computer. Let's break down the command step by step:
(Get-WMIObject "Win32_Printer")
This part of the command uses Get-WmiObject to query information about printers.
"Win32_Printer" is a WMI class that represents printe…
No comments yet. Add the first comment to start the discussion.