How can you get Info on all your Hard Drives Answer
Getting Hard drive Information
In this lecture I will show you how to access your local or remote systems hard drives including model numbers, Health status.
From the Host, open PowerShell ISE in admin mode:
Go ahead and copy and paste the Get-Disk command
Get-Disk | select model, HealthStatus****
**Here is the Explanation:
** The PowerShell Get-Disk cmdlet is used to retrieve information about disks on a Windows system and the select cmdlet to display specific properties. Here's an explanation of each part:
Get-Disk : This cmdlet is used to retrieve information about disks (storage devices) connected to the computer. It returns a list of disk objects, each representing a physical disk or storage device.
| (Pipe Operator): The pipe operator is used to pass the output of one cmdlet as input to another cmdlet. In this case, it takes the output of Get-Disk and passes it to the next cmdlet, which is select.
select : This cmdlet is used to select and display specific properties of the objects in the input stream. In this case, it's used to select two properties: Model and HealthStatus.
Model : This property represents the model or type of the disk. It typically provides information about the manufacturer and the specific model of the disk. For example, it might display "Samsung SSD 850 EVO" for a Samsung solid-state drive.
HealthStatus: This property represents the health status of the disk. It indicates whether the disk is in a healthy or unhealthy state. The possible values for HealthStatus can include "Healthy," "Warning," "Unhealthy," or other similar states, depending on the disk's condition.
When you run this one-liner, it will retrieve information about all disks on the system and display only the Model and HealthStatus properties for each disk. This allows you to quickly check both the disk model and its health status for all disks in your computer.
Here is how you get a *…
No comments yet. Add the first comment to start the discussion.