Rename Powershell network card based on the MAC address

Rename network card

$Mac1 = “00-00-00-00-00-00”
$Mac2 = “00-00-00-00-00-00”
$Mac3 = “00-00-00-00-00-00”
Get-NetAdapter | where MacAddress -eq $ Mac1 | Rename-NetAdapter -NewName Internet
Get-NetAdapter | where MacAddress -eq $ Mac2 | Rename-NetAdapter -NewName intranet
Get-NetAdapter | where MacAddress -eq $ Mac3 | Rename-NetAdapter -NewName Extranet