Using PowerShell to check the Health and Performance of a hard drive on a Remote Server is essential for maintaining a large server farm.
When it comes to hard disks and their performance, we have to stay on top of these servers, whether they are physical or virtual machines.
Using the following PowerShell Script, we can test whether the drive is healthy or needs replacing on the remote server or computer.
[PowerShell - Check the Health of the Hard Drives on Remote Servers]
CFFCS | CarrzSynEdit: | PS (PowerShell)

Invoke-Command -ComputerName "Core-02" -ScriptBlock {
    $vol = Get-Volume -DriveLetter G
    [PSCustomObject]@{
        Drive        = "G:"
        Label        = $vol.FileSystemLabel
        Health       = $vol.HealthStatus
        Operational  = $vol.OperationalStatus
        Size_GB      = [math]::Round($vol.Size / 1GB, 2)
        Free_GB      = [math]::Round($vol.SizeRemaining / 1GB, 2)
        # Check if the drive is actually 'Ready' for IO

        Access       = $vol.DriveType
    }
}

Output
Drive: G:
Label: File Server
Health: Healthy
Operational: OK
Size_GB: 400
Free_GB: 375.04
Access: Fixed
PSComputerName: Core02
RunspaceId: 18040619-6d66-4bd8-903d-b774356366ef