Windows 7 pre-logon connection with Verizon aircard

762

Solution 1

Verizon Wireless mobile broadband cards use the Dial-Up Networking function of Windows to establish a connection. (If you look, the VZAccess Manager software creates a dial-up connection in the Network and Sharing Center.) You can use this and the Pre-Logon Access Providers function of Windows 7 to login using the mobile broadband card.

After you install the Verizon software, run it once so it properly sets up your card's drivers and connection settings, and connect once to make sure everything works. Then, disconnect and close the software. Click on the Network icon next to the clock on the Windows taskbar, where you'd normally choose a wireless connection. There should be a listing for a Verizon connection. Click on that, and choose Connect. A box will pop up asking for logon credentials, pre-filled to Verizon's generic credentials (the connection is authenticated by the hardware and the network, not Windows). Select the option that allows you to save the password for all users and click Connect. (User Account Control may prompt for elevation.) The connection will now be configured for systemwide use. Repeat this process for the VPN connection to make it usable by PLAP as well.

From now on, there will be a blue button to the left of the red shutdown button on the logon screen that will allow users to log on using the mobile broadband connection:

PLAP button highlighted on Windows logon screen

Solution 2

Another way is to add an entry in the registry to run the network connection at machine startup, before login. After setting up a working connection in VZAccess manager or similar, a mbs (mobile broadband service?) profile should be created.

You can see the name of your profile(s) by running

netsh mbs show profile

In the registry, add a string value under HKLM\Software\Microsoft\Windows\CurrentVersion\Run. Create any meaningful name for the key. The value should be something like:

%comspec% /c netsh wlan connect name="<profile name>"

I've used this for a VPN client, NetMotion, so that it could before user logon. An answer from this post helped.

Share:
762
Rahul Uttarkar
Author by

Rahul Uttarkar

Updated on September 18, 2022

Comments

  • Rahul Uttarkar
    Rahul Uttarkar over 1 year

    I am trying to display string with fixed length (say 10 Digits of strings) in Grid view item template while binding, i could not find any Format specifiers for the string itself.

    i can get format specifiers for (Numbers{0:N}, Floats & Decimal (D), Currency{0:C}, , Date{1,8:yyyy} , Percentage {0,3:P1},Temperature: {0:F}, Exponential, Hexadecimal ... But Not For String Itself)

    I tried links: Click here but didn't work for me.

    My Grid view have an Template Field (Item Template)

    <asp:TemplateField HeaderText="Notes">
         <ItemTemplate>
    
         <asp:Label ID="Label_Note" runat="server" Text='<%# String.Format("{0}", Eval("Defect_Note").ToString()) %>'  ></asp:Label>   
    
        </ItemTemplate>
     </asp:TemplateField>
    

    I need to display 'Notes Column' in below grid with max 10 digits. if exeeds it should not show (can show on tooltip) if less than 10 it can show all its content.

    enter image description here

    I wanted to display the Notes columns like Printf(" %8s" ,&note) in C#. (in Binding single line)

    • hazimdikenli
      hazimdikenli over 9 years
      probably spaces are getting trimmed.
    • hazimdikenli
      hazimdikenli over 9 years
      If you want to display the first 10 characters than you need to trim it or take first 10 chars, string.format will not truncate it for you.
    • Chris
      Chris over 9 years
      You say you need the string to be of fixed length: If the string is four characters does it need to be padded to 10 characters? From the context you are using it I assume not but wanted to clarify.
    • paul
      paul over 9 years
      You could add a Defect_Note_Display property to your view model: public string Defect_Note_Display { get { return Defect_Note.Substring(0,10); } } or similar
  • Kyle Gibbons
    Kyle Gibbons about 13 years
    Fantastic, that you so much for your response!
  • Rahul Uttarkar
    Rahul Uttarkar over 9 years
    An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0103: The name 'Limit' does not exist in the current context
  • Chris
    Chris over 9 years
    @Rahul: I assume Limit is a custom method that Senthilkumar forgot to include in his answer. I suspect it will have similar content to hazimdikenli's answer though.