I believe that will at least find the line that has your MAC, and you can get the IP from there. Netsh dhcp server \\DHCP server scope 10.65.22.0 show clients 1 | Select-String -SimpleMatch $MACAddr Or, one option would be to pipe the command into the Select-String cmdlet, and have that search for your MAC address. Go to the Wifi/Networking Icon on your Mac in the top right. Note - Your printer directly to your computer using the ethernet cable. I am not familiar with the results that get spit out when you run that command, so if you want to give a sample of that (update your question to include it, don't put it in a comment), I can probably help you parse the text into objects, or just search it for a MAC address. To configure your printer with an IP address that is compatible with your network, we will first need to make a temporary change to your computer's network setting. You have two options here, you can search for the line of text that has your MAC and consume the whole line, or you can parse the text and convert it to objects. So netsh is an external application, and will return a bunch of text, but not objects, so you can't check a property (like $_.uniqueID) using a Where statement.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |