![]() The laptop I an doing the IP scan from is on the same vlan as the printers. If the switch can get the MAC address of every device connected to it, there should be a way for me to ascertain the MAC address of every network device as well. But as it stands, I have not figured a way to get the MAC address from about half the printers, aside from going out and physically looking at the hardware. I am replacing the blue patch cables for printers with green ones. This way I can determine which switch and which port is connected to each printer. Link the data from the powershell printerserver script above to flesh out any additional info on the printers not found in the IP scan (such as the comments, location, etc). My thought process is: download the MAC tables from the switches, link those to the MAC addresses found in the IP scan. One specific instance is that I have two printers reporting as hp LaserJet 4250 (HP-ChaiSOE/1.0), one returns a MAC and one does not (in the IP scan). For example, I have HP printers that show their mac address with the Advanced IP Scanner, and then some of them do not. But sometimes the devices do not reply with their MAC address. I use a program called Advanced IP Scanner that returns the MAC address of devices through an IP scan. Bold = $True #= # Get printer information ForEach ( $Printserver in $Printservers ) $intRow īasically, I am trying to find out which ports on the switches are connected to printers. Item ( 1, 10 ) = "Share Name" #= $intRow = 2 $WorkBook = $Sheet. Item ( 1, 7 ) = "Driver Version" $Sheet. Powershell $Printservers = Get-Content "c:\users\bweatherley\scripts\printservers.txt" # Create new Excel workbook cls $Excel = New-Object -ComObject Excel. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |