Link to home
Start Free TrialLog in
Avatar of DBThomson76
DBThomson76Flag for United States of America

asked on

Powershell Script to output IP and MAC from Servers text file

I need to come up with a script that can output just the IP Address and MAC address of each server to a CSV file.

I have a file that lists all my server hostnames. ex. C:\Scripts\AllServers.txt

Can someone help me with a powershell script that would do this.

TIA!
SOLUTION
Avatar of Sean
Sean
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DBThomson76

ASKER

I need to be able to export the Hostname, IP Address, and MAC Address to a CSV file.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've requested that this question be closed as follows:

Accepted answer: 0 points for DBThomson76's comment #a40525420

for the following reason:

After getting the Get-IPDetails.pl1 powershell script and combining it with the rest of the command line it work as expected.
Why did you not mark my answer as correct then if your using the link that i sent to you?
Used link provided to find answer but no credit given