![]() Click Test print to test the printer is set correctly. (To use DHCP Setting, you need to check the DHCP Setting) 4. I believe that will at least find the line that has your MAC, and you can get the IP from there. (To Search using MAC Address, you need to check the Search using MAC Address) 4. 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. 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. 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 |