Question regarding the Network List Manager COM object in Powershell


  • Hi,


    I'd like to know where to post this thread :


    I have a problem with retrieving the adapter ID attached to a network connection. i use the NetworkListManager  API introduced in Windows Vista on a Windows 7 computer

    $NLMType = [Type]::GetTypeFromCLSID(‘DCB00C01-570F-4A9B-8D69-199FDBA5723B’)
    $INetworkListManager = [Activator]::CreateInstance($NLMType)


    foreach($network in $INetworkConnections){

    When I make a get-member command on the $network object, GetAdapterID() is listed as one of its methods...

    But this script returns an exception calling the GetAdapterID() method....

    I can't handle this...

    Please could anyone help

    Friday, December 10, 2010 10:41 PM