Unable to find an entry point named 'GetPerAdapterInfo' in DLL 'iphlpapi.dll'

Kenyatta Jefferson 1 Reputation point
2021-04-28T18:46:03.47+00:00

I am in Azure Automate and trying to connect to SharePoint oniline. I am running the code Connect-SPOService -url "my admin url" and getting the error message "Unable to find an entry point named 'GetPerAdapterInfo' in DLL 'iphlpapi.dll' . What could be causing this error message?

Full code is:

$credential = get-automationpscredential -name 'Name'
Connect-MsolService -Credential $credential

Connect-SPOService -url "https://organization-admin.sharepoint.com"

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,198 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. bharathn-msft 5,086 Reputation points Microsoft Employee
    2021-05-05T01:08:48.317+00:00

    <<Moving the information from comments to here for broader community usage >>

    @Kenyatta Jefferson Welcome to Microsoft Q&A and thanks for your query.

    Our sincere apologies for delay in getting to this thread.

    Reviewing the error you are getting into, came across some of the pointers. Wanted to share with you in case you haven't already reviewed them. Thanks

    https://stackoverflow.com/questions/52730509/connect-msolservice-unable-to-find-an-entry-point-named-getperadapterinfo-in
    https://stackoverflow.com/questions/54272880/connect-azurermaccount-unable-to-find-an-entry-point-named-getperadapterinfo
    https://github.com/pnp/PnP-PowerShell/issues/2726

    Hope this information helps, if you still continue to see the issue please feel free to circle back. Thanks

    0 comments No comments