locked
Storage Spaces Physical Disks RRS feed

  • Question

  • Hey,

    I am a simple man with simple needs. How can I sort these disks in real disk number order?!!!!!!!!!!!!!!!!!

    No column provides this. I see from 2016 that there is a new column for bus and slot number. I need this in 2012 R2! Upgrading is not an option at the moment.

    Friday, October 20, 2017 8:09 PM

Answers

  • Hi,

    I have not tested this on Server 2012 but on Windows 8.1 this is working

    $colItems = Get-PhysicalDisk 
    foreach ($objItem in $colItems) {
        write-host "HealthStatus: " $objItem.HealthStatus
        write-host "SerialNumber: " $objItem.SerialNumber
        write-host "FriendlyName: " $objItem.FriendlyName
    }

    • Proposed as answer by Mary Dong Wednesday, November 1, 2017 6:58 AM
    • Marked as answer by Lanky Doodle Monday, November 6, 2017 9:02 AM
    Saturday, October 21, 2017 5:08 PM