Giter VIP home page Giter VIP logo

wifimapdrive's Introduction

WifiMapDrive

If your windows machine uses WiFi (or your ethernet connection takes too long, maybe because it has to go through a series of switches) and you would like to map network drives, e.g. for file shares, this will often fail because Windows' attempt to connect to the shared drive will happen before the connection has been fully established.

If you map a drive, and configure a scheduled task in a particular way to run this batch script (it just calls net use), you'll get connected to your share (which should match what you mapped), although you'll still get a little error popup that says 'unable to connect to share'.

The script runs per-user, not per-machine. So if you have multiple users you'll need to set it up multiple times. There is a group policy object for executing tasks when the machine boots up, but you run into similar problems. Besides, mapping a network drive is tied to a user account anyway.

Using group policy, you could probably force every user on the domain to run this script with the same constraints anyway. Might make sense for an enterprise where most machines are using WiFi ior have slow ethernet connectivity establishment.

To set up, do the following (in Windows 7, similar for 8):

Start > Control Panel > System and Security > Administrative Tools (near the bottom).

If you're using 'large icons', just go to Administrative Tools.

In the left pane, right click on Task Scheduler Library and click Create Task

Name: Shared drive (or whatevery ou like)

Click the Triggers tab and click New...

Begin the task: > At log on

Run as specific user, and set the user to your account.

Click on Actions tab and click New...

Set the program/script to the mount-helper.bat file.

Set the "start in" to the same directory that the mount-helper.bat file is located in. Click Ok.

Click the Conditions tab and uncheck everything.

Check "Start only if the following network connection is available:

You can choose the particular network required. Generally this will just be the one named 'Network' but you can double check in Adapter Settings.

Click OK

Done.

##TODO##

  • Investigate using Task Scheduler condition: "start only if the following network connection is available"
  • Orchestration to automatically install, including setting up task and mapping drive
  • Install prompts for list of connections to map and drive letters

wifimapdrive's People

Contributors

payamazadi avatar payamazadi-private avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.