How To Find WWN On Windows 2012 R2

How To Find WWN on Windows 2012 R2

Are you trying to locate the WWN (World Wide Name) on Windows Server 2012 R2? The WWN is crucial for managing your HBA (Host Bus Adapters) and facilitating communication between storage devices and your server. Fortunately, PowerShell offers straightforward methods to obtain this information swiftly.

Here are two efficient approaches to fetch the WWN on your Windows Server 2012 R2:

Method 1: Using PowerShell Command

  1. Open PowerShell: Launch PowerShell with administrative privileges.
  2. Run the Command: Enter the following command to retrieve the WWN on your HBA Adapters:

Get-WmiObject -class MSFC_FCAdapterHBAAttributes -namespace “root\WMI” | ForEach-Object {(($_.NodeWWN) | ForEach-Object {“{0:x}” -f $_}) -join “:”}

This command uses the Get-WmiObject cmdlet to query the MSFC_FCAdapterHBAAttributes class in the root\WMI namespace. It then formats the obtained WWN information for easy reference.

WWN on Windows 2012 R2

Method 2: You can get the same results by issuing a simple command

                  Get-InitiatorPort

Get-InitiatorPort

This straightforward command retrieves the necessary WWN information without the need for additional complexity.

Whether you opt for the detailed command in Method 1 or the quick query in Method 2, these PowerShell commands will provide you with the essential WWN details for your HBA Adapters on Windows Server 2012 R2.

Understanding and having access to the WWN is crucial for various administrative tasks, especially when configuring storage devices and managing server connectivity. These PowerShell commands streamline the process, allowing you to retrieve the necessary information promptly and efficiently.

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More