Share via

API to Store wired network profile

Vijayan Venkataraman 1 Reputation point
2022-12-15T11:02:01.693+00:00

Is there no API for storing Wired Network profiles in Windows ?
The link https://learn.microsoft.com/en-us/windows/win32/nativewifi/wired-profile-samples indicates i should use netsh only.
However for Wireless network profiles there is a API https://learn.microsoft.com/en-us/windows/desktop/api/wlanapi/nf-wlanapi-wlansetprofile

If not present, any history or reasons for this ?

Windows development | Windows API - Win32
0 comments No comments

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 12,736 Reputation points Microsoft External Staff
    2022-12-16T03:23:57.087+00:00

    Hello,

    Welcome to Microsoft Q&A!

    The document doesn't show the reason why there is no API to set LAN profile but there is no API to set LAN profile in fact.
    You can send feedback to Microsoft with the Feedback Hub app about the concern.

    Thank you.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.