Find the WWN Information in order to Map storage etc.
I recommend combining this script with Send-HtmlEmail function.
Send-HTMLEmail -InputObject (Get-HBAWin -ComputerName 10.185.63.253, 10.185.63.254) -Subject "HBA Info"

You can get that function here: http://gallery.technet.microsoft.com/scriptcenter/bd0c8d87-466f-4488-92a2-0f726cb6f4cd

Then you will get results as below in your Inbox.

 

Or else just use:

 Get-HBAWin -ComputerName 10.185.63.253  | Format-Table -AutoSize

 

I added a script sample below that gets the PortWWN and the NodeWWN

 * If you want WWPN's as well, this class may also be of interest to you: MSFC_FibrePortHbaAttributes

PowerShell
Edit|Remove
function Get-HBAWin {  
param(  
[String[]]$ComputerName = $ENV:ComputerName, 
[Switch]$LogOffline  
)  
  
$ComputerName | ForEach-Object {  
try { 
    $Computer = $_ 
     
    $Params = @{ 
        Namespace    = 'root\WMI' 
        class        = 'MSFC_FCAdapterHBAAttributes' 
        ComputerName = $Computer  
        ErrorAction  = 'Stop' 
        } 
     
    Get-WmiObject @Params  | ForEach-Object {  
            $hash=@{  
                ComputerName     = $_.__SERVER  
                NodeWWN          = (($_.NodeWWN) | ForEach-Object {"{0:X2}" -$_}) -join ":"  
                Active           = $_.Active  
                DriverName       = $_.DriverName  
                DriverVersion    = $_.DriverVersion  
                FirmwareVersion  = $_.FirmwareVersion  
                Model            = $_.Model  
                ModelDescription = $_.ModelDescription  
                }  
            New-Object psobject -Property $hash  
        }#Foreach-Object(Adapter)  
}#try 
catch { 
    Write-Warning -Message $_ 
    if ($LogOffline) 
    { 
        "$Computer is offline or not supported" >> "$home\desktop\Offline.txt" 
    } 
} 
 
}#Foreach-Object(Computer)  
  
}#Get-HBAWin
 

 

 

PowerShell
Edit|Remove
function Get-HBAWin {  
param(  
[String[]]$ComputerName = $ENV:ComputerName, 
[Switch]$LogOffline  
)  
  
$ComputerName | ForEach-Object {  
try { 
    $Computer = $_ 
     
    $Params = @{ 
        Namespace    = 'root\WMI' 
        Class        = 'MSFC_FCAdapterHBAAttributes'  
        ComputerName = $Computer  
        ErrorAction  = 'Stop' 
        } 
     
    Get-WmiObject @Params  | ForEach-Object {  
        $InstanceName = $_.InstanceName -replace '\\','\\' 
        $Params['class']='MSFC_FibrePortHBAAttributes' 
        $Params['filter']="InstanceName='$InstanceName'"  
        $Ports = @(Get-WmiObject @Params | Select -Expandproperty Attributes | % { ($_.PortWWN | % {"{0:x2}" -$_}) -join ":"}) 
        #$NodeWWN = @(Get-WmiObject @Params | Select -Expandproperty Attributes | % { ($_.NodeWWN | % {"{0:x2}" -f $_}) -join ":"}) 
 
        $hash=@{  
                ComputerName     = $_.__SERVER  
                NodeWWN          = (($_.NodeWWN) | ForEach-Object {'{0:x2}' -$_}) -join ':' 
                PortWWN          = $Ports 
                Active           = $_.Active  
                DriverName       = $_.DriverName  
                DriverVersion    = $_.DriverVersion  
                FirmwareVersion  = $_.FirmwareVersion  
                Model            = $_.Model  
                ModelDescription = $_.ModelDescription 
                UniqueAdapterId  = $_.UniqueAdapterId 
                NumberOfPorts    = $_.NumberOfPorts 
                  }  
            New-Object psobject -Property $hash  
        }#Foreach-Object(Adapter)  
}#try 
catch { 
    Write-Warning -Message "$Computer is offline or not supported" 
    if ($LogOffline) 
    { 
        "$Computer is offline or not supported" >> "$home\desktop\Offline.txt" 
    } 
} 
 
}#Foreach-Object(Computer)  
  
}#Get-HBAWin