Hardware of Physical Address aka MAC Address foweroint

~OSD~ 2,201 Reputation points
2023-02-24T22:32:38.16+00:00

Delete Delete

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

Accepted answer
  1. Rich Matheisen 47,901 Reputation points
    2023-02-28T22:34:53.88+00:00

    This seems to be what you're aiming for:

    # NOTE: If there are multiple NICs that match the wildcarded name in each Get-NetAdapter
    #       this will produce unexpected results!
    [PSCustomObject]@{
        Serial      = (Get-WmiObject Win32_BIOS).SerialNumber
        "PC Model"  = (Get-WmiObject -Class:Win32_ComputerSystem).Model
        Ethernet    = (Get-NetAdapter -Name Ethernet*).MacAddress
        WiFi        = (Get-NetAdapter -Name Wi-Fi*).MacAddress
        BlueTooth   = (Get-NetAdapter -Name Bluetooth*).MacAddress
    } | Export-Csv -Path C:\NICs.csv -notypeinformation
    
    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Rich Matheisen 47,901 Reputation points
    2023-02-25T03:38:52.5666667+00:00

    Use the Get-NetAdaptor cmdlet.


  2. Shanele Tademy 0 Reputation points
    2023-02-27T20:50:39.3533333+00:00

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.