Skip to content

Renew-DHCP script fails to get the interface name  #6

@zweilosec

Description

@zweilosec

Neither

$IfaceName = $iface.NetConnectionID
or
$Name = $iface.GetRelated("Win32_PnPEntity") | Select-Object -ExpandProperty Name

return the name of the interface properly. These should work according to https://devblogs.microsoft.com/scripting/use-powershell-to-identify-your-real-network-adapter/ and other sites

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions