BRONZE PARTNER:
BRONZE PARTNER:
Industry News:

| |
 |
 |
 |
| PowerShell Script To Return A Remote Machines MAC And IP Address |
 |
|
|
By: Don Hite
Posted On: 4/30/2007
This article was Previously posted on Don Hite's Blog
This PowerShell script will prompt you for a remote machine name and return the MAC address and The IP address for the machine
PS1 Script:
Clear $strComputer = Read-Host "Enter Machine Name" Clear
$colItems = GWMI -cl "Win32_NetworkAdapterConfiguration" -name "root\CimV2" ` -comp $strComputer -filter "IpEnabled = TRUE"
ForEach ($objItem in $colItems) {Write-Host "Machine Name: " $strComputer Write-Host "MAC Address: " $objItem.MacAddress Write-Host "IP Address: " $objItem.IpAddress}
|
 |
 |
 |
|
|