Find SAN disks

Welcome Forums General PowerShell Q&A Find SAN disks

This topic contains 3 replies, has 3 voices, and was last updated by

 
Participant
1 year, 5 months ago.

  • Author
    Posts
  • #80603

    Participant
    Points: 71
    Rank: Member

    Hi,
    I need to get SAN disk details on server and if no external LUN's attached the script should output message 'No external disks found'
    I have tried WMI class win32_volume with filter for drivetype eq '3' but it just gets me local disk.

    Thanks,
    Kishor

  • #80617

    Participant
    Points: 251
    Helping Hand
    Rank: Contributor

    try Get-SBDisk function of the SB-Tools module (requires PS 5, Install-Module SB-Tools -Force). It outputs DriveLetterorMountPoint property. Are SAN disks mounted to a folder or a drive letter?
    How are SAN volumes connected? iSCSI?

  • #80638

    Participant
    Points: 22
    Rank: Member

    Win32_Volume will just show you SAN disks already formated, mounted as a volume. You might wanna query Win32_DiskDrive: https://msdn.microsoft.com/en-us/library/aa394132(v=vs.85).aspx

  • #80669

    Participant
    Points: 71
    Rank: Member

    Thank you Leandro, Win32_Diskdrive and filtered 'model' like 'powerpath', it has solved my problem.

    Thanks,
    Kishor

The topic ‘Find SAN disks’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort