LegacyUserBlogs

 View Only
  • 1.  Get Naa ID and Name

    Posted Jan 23, 2020 01:51 PM

    $DSList = Get-Datastore |where {$_.Type -eq 'VMFS'}

    $output= ""|Select Name, NaaID

    foreach($ds in $DSList)

    {

        $output.Name =$ds.Name

        $output.NaaID=$ds.extensiondata.info.vmfs.extent.diskname

        $output

        $output|Export-csv DSList.csv -Append -NoTypeInformation

    }