Solved

Adding custom mobile broadband profiles in Win 7

Posted on 2013-12-23
5
2,589 Views
Last Modified: 2016-10-10
I need to create a custom mobile broadband connection profile on a number of Windows 7 computers. I have learned that this could be accomplished by running the following command:
netsh mbn add profile interface=MobileBroadband Connection" name="ProfileName.xml"
where ProfileName.xml is an XML file created in accordance with the instructions found at http://www.microsoft.com/whdc/connect/wireless/MB_CustGuide.mspx.

The problem is that I always get an error saying "The Profile cannot be loaded" when I run the command.

My XML file looks like this:

 <?xml version="1.0"?>
 <MBNProfile xmlns="http://www.microsoft.com/networking/WWAN/profile/v1">
	 <Name>TestProfile</Name>
	 <ICONFilePath></ICONFilePath>
	 <IsDefault>true</IsDefault>
	 <ProfileCreationType>UserProvisioned</ProfileCreationType>
	 <SubscriberID>123456789012345</SubscriberID>
	 <AutoConnectOnInternet>false</AutoConnectOnInternet>
	 <ConnectionMode>manual</ConnectionMode>
	 <Context>
		 <AccessString></AccessString>
		 <UserLogonCred>
			 <UserName></UserName>
			 <Password></Password>
		 </UserLogonCred>
		 <Compression>DISABLE</Compression>
		 <AuthProtocol>NONE</AuthProtocol>
	 </Context>
 </MBNProfile>

Open in new window


I have also tried copying a working profile's xml file (from C:\ProgramData\Microsoft\WwanSvc\Profiles), but this also gives me "The Profile cannot be loaded".

Can anyone tell me what I'm doing wrong?
0
Comment
Question by:_ararag
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 19

Expert Comment

by:mrwad99
ID: 39736269
Hmm, have you tried running the command through a command prompt that has admin privileges?
0
 

Author Comment

by:_ararag
ID: 39741266
Thank you mrwad99 for the suggestion.
Yes, I have tried running the command through a command prompt that has admin privileges, but that doesn't help. It gives me the above mentioned message: "The Profile cannot be loaded".
0
 
LVL 1

Accepted Solution

by:
Chris earned 500 total points
ID: 40324530
I started off with this same error. First thing I did was

netsh mbn show profiles

netsh mbn delete profile interface="Mobile Broadband Connection" name=xxxxxxx  (where xxxxx is the name of a profile from pervious command, profile names are case sensitive)

Delete any profiles that are shown.

Then add your custom profile

netsh mbn add profile interface="Mobile Broadband Connection" name="xxxxxxxxxx"  (where xxxxx is the location of your XML profile)

Here is my XML profile for your reference.

<?xml version="1.0"?>
<MBNProfile xmlns="http://www.microsoft.com/networking/WWAN/profile/v1">
      <Name>xxxxxxx</Name>
      <ICONFilePath>c:\IT\WWAN\logo.ico</ICONFilePath>
      <IsDefault>true</IsDefault>
      <ProfileCreationType>UserProvisioned</ProfileCreationType>
      <SubscriberID>0010......30405</SubscriberID>
      <SimIccID>000.........0000</SimIccID>
      <HomeProviderName>Yours</HomeProviderName>
      <AutoConnectOnInternet>true</AutoConnectOnInternet>
      <ConnectionMode>auto-home</ConnectionMode>
      <Context>
            <AccessString>if needed</AccessString>
            <UserLogonCred>
                  <UserName>If needed</UserName>
                  <Password>if needed</Password>
            </UserLogonCred>
            <Compression>DISABLE</Compression>
            <AuthProtocol>NONE</AuthProtocol>
      </Context>
</MBNProfile>

**Notes**
I copied the only file in this directory after creating a WWAN profile through the GUI to get the basic XML layout
C:\ProgramData\Microsoft\WwanSvc\Profiles
<SubscriberID> you can get from the command netsh mbn readyinfo interface="Mobile Broadband Connection"
to replace the encrypted one that is in there
0
 

Expert Comment

by:Neeraja Joshy
ID: 41836460
Hello

I have the same error - Profile cannot be loaded. I tried the solution above but it still shows the same. when i try to show existing profiels, it says <none>.
Can you please help me?
Thank you.
0
 
LVL 19

Expert Comment

by:mrwad99
ID: 41837409
Neeraja Joshy, this question is closed - please open a new one and ask it there.  Thanks!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to set permissions to allow a limited-permissions user to start and stop a particular System Service.   It is always best to give users only the permissions that they need to perform their job, so tweaking particular permi…
Have you ever had a hard drive that you can't boot into, but need to change the registry? Here is the solution! This article guides you through accessing and editing a registry of a non-primary drive. To read registry information on a non-prim…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question