Public/Get-VLANsAndPrefixes.ps1
function Get-VLANsAndPrefixes { $Output = Get-NetBoxIPAM -QueryObject Prefixes | Select-Object prefix, description, @{n = 'VLAN'; e = { $_.vlan.name } }, @{n = 'VLAN ID'; e = { $_.vlan.vid } }, @{n = 'VLAN Description'; e = { $_.vlan.description } } return $Output } |