what disks attached to what or how many contollers on sql server

  • is there a way at the server level to tell what drives are attached to what and how many contollers (is tsql even an option?)

  • tsql is not really useful here I think, have a look at this PowerShell Script instead

     

    $disks = gwmi win32_diskdrive

    foreach($disk in $disks)
    {
    $disk.psbase.getrelated('win32_scsicontroller')
    }
    $disks | Select *

    You can shorten the Output, most likely asides the Drive Letter you'll want SCSIBus, SCSILogicalUnit, SCSIPort and SCSITargetId

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply