2/19/2023 0 Comments Mac address vendor codes.I learned that Get-Neighbor is what I need but it pulls all IP's so I limited it by IPV4 it pulls unreachables and multicasts so I limited it by removing those I wanted the list by MAC so I sorted it. ![]() ![]() I started by getting all the MAC addresses on the /24 network by using 'arp -a' but thought it would be easier to use the data by doing it in PowerShell. (because it was a small network I found the device manually, but for the next time.!) It was the only device on the network that was manufactured by a specific vendor so it should've been easy, if I had a script it would've been fast and easy. So in this instance I was trying to find a device on the network. | select -first 40 lastwritetime, length, name, directory ` For instance, I recently needed the most recent activity in a directory structure: Get-ChildItem "C:\Users\JDoe\OneDrive - Contoso" -Recurse ` )Įvery time I have a specific need for something I am trying to do it in PowerShell to learn it and also to have a repository of snippets for the next time and the next customer. ![]() (I am not an IT newbie, but kind of a PowerShell newbie, I have written some scripts but usually get stuck and have to borrow from the scripts and ideas of others.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |