LanLogon v2.0

 LanLogon v2.0

This is the LanLogon english site. [Ver a versão em Português]


LanLogon v2.0 is a software to save the password from your network shares and map them as network drives when you get connected to a specific network. As a bonus it does remove the drives when you disconnect from the specific network.

Works with Windows XP, Vista, Seven, 8, versions: Starter, Home, Home Basic, Home Premium, Professional, Business, Enterprise and Ultimate.


The software uses the .net framework 4.0 Client Profile which can be installed by Windows Update or by downloads on the Microsoft website: [web_installer], [standalone_installer].

LanLogon can be downloaded there: [mirror_1_(US)], [mirror_2_(BR)], [mirror_3_(SkyDrive)].

Donations through PayPal are welcome! 😀
Click on this button to donate: 


The software tries to be user friendly, it does run on the background with low priority without interrupting the user, the profiles setup screen is simple and the details are explained below:

  1. Enable profile. Easy: when enabled the drives will be mapped according to the configuration.
  2. Profile name. To remind you about this share.
  3. Network sharing path. Full network sharing path for the mapped drive.
  4. Mapped drive letter. Letter of the mapped share.
  5. Username, leave it empty if your network sharing doesn’t require an username.
  6. Password, leave it empty if your user doesn’t have a password.
  7. Match IP: This setting is cool! It checks if the network IP assigned to your machine matches this. For example with an IP like or or 192.168.100.x you would set up “192.168.100.” as your matching IP. This way when you connect to a network and get an IP like the software will not attempt to map the network drive.
    This option accepts: IPv4, IPv6 and RegEx.
    Use RegEx input as this example: regex:(192\.168\.0\.|192\.168\.1\.)
    A nice website to help you writing RegEx is RegExPal.
    ATTENTION: The RegEx function uses .net framework, working only with basic RegEx (instead of \d you have to use [0-9], try and find out what works and what does not!).
  8. Ping IP: This option will map the drive only if IP answers the echo request.
    You can use IPv4, IPv6, Netbios name or Fully Qualified Domain Name.
    Make sure that what you want to ping does answer the ping! Or the drive may never be mapped. (Try one ping from dos at first).
  9. Save Button: Save the profile.
  10. Cancel Button: Cancel profile edit or creation.

Software Translation

You can translate this software to any language, check the languages.ini in the same directory as the main executable for more details. Feel free to send me your translations if you want me to include them in the setup file.


It is impossible to make a software hacker-proof, however security measures were taken to stop or at least make it hard for someone to decrypt a stored password, making the software secure to store your passwords. For example, the source code is not distributed and is stored only into a password crypted file on my computer.

Known Issues

A) LanLogon is not using the translation from languages.ini. On some windows versions you may have to set the language id LanLogon will use. Run the software once with /setid argument, for example: “LanLogon v2.0.exe /setid=1033” for english.

B) LanLogon works with a single user on a single machine. If you want to use LanLogon for multiple users on the same machine you have to make some workarounds:

  • On Windows XP: Add a shortcut to LanLogonXPTask.exe on startup menu.
  • On Windows Vista/Seven/8 you have to create both scheduled tasks (or rename the existing ones before you reinstall LanLogon for the new user).

Theorically nobody should have this issue, which in fact is not an issue, it is the software design. 😉


Once uppon a time, on my Windows Vista Home Basic notebook, I noticed it did not save my network passwords as my Windows Vista Ultimate PC did. So I had to find a way to save my network passwords and then I created a windows registry key that would do a pre-authentication on the network server, having then my windows map the network drive correctly.

Was a simple registry key, which later on raised a few issues: the network drive was always trying to connect to the server, with or without network access, and the password was open for anyone with a minimal computer knowledge to view.

Then I had to improve the network login method, creating a vbs script that could detect my network IP and map the netshare accordingly. Making things simpler however it required manual editing on the script to add new network entries (which could easily lead to typo and script errors). The script still had the password in plain text, letting anyone with notepad to view it anytime. Creating the scheduled tasks was hard aswell, each entry had to be created manually and I hadn’t realised the importance of mapping a network drive with the administrator account.

As evolution goes on, LanLogon 1.0 was born, made with AutoIt3, mapping the network drives when connected to the right networks and having the password coded. Issues were solved for a good time. Untill I found a new issue: this version would only take one username/password, which would work for one server. As time went by more servers were added to the network with different username/password combination and things started to get complicated again.

To solve all these issues we had so far, LanLogon v2.0 was reborn, programmed on Visual Basic 2010. A robust solution, with theorical support to unlimited network profiles and being adequate to my daily usage basis. So I share it through the internet to whoever wants to use my solution aswell! 😀

Uma ideia sobre “LanLogon v2.0

  1. Pingback: LanLogon v2.0 | Blog do Eduardo Nunes

Escreva seu comentário: