Retrieving LUN Serial Numbers with Windows PowerShell

Updated — June 20/17

I have been asked this question more than I have fingers and toes so I figured I would do a quick post providing the Windows PowerShell that will retrieve the Serial Number for any LUN connected to a Windows Server.

The Index corresponds to what the Windows Disk Management displays. Now there is a 1:1 mapping of Device Index and Serial Number that can be used for automation tasks.

Thanks,
Barkz

Add Comment

Required fields are marked *. Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">