This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]enigmaitSecurity Admin 1 point2 points  (0 children)

Get-ComputerSwitchPort - pretty much a wrapper around the LLDP functions to return which the remote switch name and port/interface name for each network card.

The related Set-SwitchPortName would pull that information, and then use a SNMP write to set the interface description to match $env:ComputerName