How to add new automatic APN configuration based on MCC and MNC for cellular-supported Windows 11 devices.

Bob Xiao 0 Reputation points
2023-06-20T05:42:18.5466667+00:00

Windows may lack some carrier's APN configurations.

As title, I want to implement a auto configuration of APN based on MCC and MNC for our device.

I have tried Windows Configuration Designer and did not find MCC or MNC feild, so, dear experts, do you have any other suggestions?

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,751 Reputation points
    2023-06-20T20:41:07.7+00:00

    Hello Bob,

    Thank you for your question and for reaching out with your question today.

    In Windows 11, the ability to configure APN (Access Point Name) settings based on MCC (Mobile Country Code) and MNC (Mobile Network Code) is not available through the built-in Windows Configuration Designer tool. However, you can still achieve this configuration by using other methods, such as PowerShell scripting or Group Policy.

    Here's a suggested approach using PowerShell:

    1. Open PowerShell with administrative privileges.
    2. Use the following command to create a new APN profile:
    
    New-NetAPN -Name "APN Name" -AccessPointName "APN" -ProfileName "Profile Name" -MCC "123" -MNC "456" -AutoConnect
    
    

    Replace "APN Name" with the desired name for the APN, "APN" with the actual Access Point Name provided by the mobile network operator, "Profile Name" with a descriptive name for the profile, and "123" and "456" with the appropriate MCC and MNC values for the specific mobile network.

    1. Repeat the above command for each MCC-MNC combination you want to configure.
    2. Once the APN profiles are created, Windows will automatically use the matching APN configuration based on the MCC and MNC of the connected cellular network.

    Note: Keep in mind that this method requires administrative privileges and may require additional customization based on your specific deployment scenario. It's recommended to test this approach in a controlled environment before deploying it to production devices.

    Alternatively, if you are managing a large number of devices in an enterprise environment, you can consider using Group Policy to configure APN settings. This involves creating a custom ADMX/ADML template for APN configuration and deploying it via Group Policy. This approach provides more centralized control and management of APN settings across multiple devices.

    Please note that the availability and compatibility of these methods may vary depending on the version of Windows 11 and the specific device configuration. It's always recommended to test and validate any configuration changes in a controlled environment before implementing them in a production environment.

    I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.

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


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.