Solved

Adding custom mobile broadband profiles in Win 7

Posted on 2013-12-23
5
2,210 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Lodctr fails with code 5 - Access denied 2 559
File Types Dropdown box 3 24
windows 2012 r2 standard  licensing re hyper-v 4 42
How to uninstall patches using SCCM 2012? 2 51
Hallo! I guess almost every Windows Administrator must have got stumped with this question "Where does WINDOWS store a users cached credentials? Every user who had once logged onto a Server/Desktop while it was connected to the domain could sti…
Many admins will agree: WSUS is is a nice invention but using it on the client side when updating a newly installed computer is still time consuming as you have to do several reboots and furthermore, the procedure of installing updates, rebooting an…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

911 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now