Browsed by
Tag: remote

PowerShell: Get the hostname, mac, and IP remotely

PowerShell: Get the hostname, mac, and IP remotely

Normally I look around and find scripts to do things I need right away, sadly today, that was not the case! So, I looked at a few websites and was able to come up with this: $machines = Get-Content feedme.txt foreach($machinename in $machines) { get-wmiobject win32_networkadapterconfiguration -computer $machinename -filter “IPEnabled=’True'” | Select DNSHostname,MACAddress,IPAddress } Basically how it works is, you put your script and feedme.txt file in the same folder, the feedme.txt file has all of the machine names, then…

Read More Read More