programmatically enable an eSIM from a list of profiles

Blau Wolfgang 0 Reputation points
2023-02-28T09:06:06.81+00:00

Hi there,

we're replacing mobile APN's with eSIM profiles in our tests. Why is there no way to programmatically select an eSIM from a list of profiles, something similar to 'netsh mbn connect interface="mobile" connmode=name name="fast"?

Yes, I've found the LPA service that gets activated when you enable an eSIM:

[MBBSettingUX]SystemSettings::DataModel::CESimProfileEntrySettingHandler::DoEnableProfile(2553):Enable profile for profileId = 1234567890720381100

[Microsoft.Windows.Cellcore.LPA.Service]LpaServiceLui,LPA::Lui::LogMessage,4,952,7,1234567890720381100,0,12345678907203810000001378939818

But there's no published API towards LPA I know of.

Applies to both Win 10 & 11.
Thanks.

Windows for business Windows Client for IT Pros Networking Network connectivity and file sharing
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,751 Reputation points
    2023-03-01T16:45:51.9+00:00

    Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query

    I am afraid that currently, there is no published API for LPA services so you can program and select an eSIM. But you can use WMI API so you can access the information with regards to eSIM profile.

    If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.


Your answer

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