Skip to content

Commit

Permalink
UNC vs. URI, authentication, pathing, debug
Browse files Browse the repository at this point in the history
  • Loading branch information
thexmanxyz committed Nov 30, 2017
1 parent 0fa3c16 commit 014567f
Show file tree
Hide file tree
Showing 3 changed files with 340 additions and 176 deletions.
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ Many claim that the reconnect problem leads back to a timing problem during logi
* little knowledge on Windows Task Scheduling

## Download / Installation
1. [Download v1.2.5](https://github.com/thexmanxyz/network-share-reconnecter/releases/download/v1.2.5/nsr.v1.2.5.zip) of the Network Share Reconnecter Package.
1. [Download v1.3.0](https://github.com/thexmanxyz/network-share-reconnecter/releases/download/v1.3.0/nsr.v1.3.0.zip) of the Network Share Reconnecter Package.
2. Extract the files.
3. Modify the sample configuration in the **share_reconnect.vbs** script file.
* At least modify `hostname`, `sharePaths` and `shareLetters` (see also the [configuration section](https://github.com/thexmanxyz/network-share-reconnecter/blob/master/src/share_reconnect.vbs#L35-L36) and [Issue #1](https://github.com/thexmanxyz/network-share-reconnecter/issues/1)).
* At least modify `hostname`, `sharePaths` and `shareLetters` (see also the [configuration section](https://github.com/thexmanxyz/network-share-reconnecter/blob/master/src/share_reconnect.vbs#L41-L43) and [Issue #1](https://github.com/thexmanxyz/network-share-reconnecter/issues/1)).
* Multiple servers can be easily added and configured.
4. Copy **share_reconnect.vbs** to a self defined directory.
5. Start Windows Task Scheduler - manually or with **taskschd.msc**.
Expand All @@ -30,7 +30,10 @@ Here a short description of the available parameters which can be configured:
* `hostname` - IP or hostname of the remote server **(must be modified)**
* `sharePaths` - all share paths on the server **(must be modified)**
* `shareLetters` - the share / drive letters for the defined paths **(must be modified)**
* `netUsePersistent` - should *net use* create a persistent share **(yes/no)**
* `persistent` - should *net use* create a persistent share **(yes/no)**
* `user` - username for net use authentication if required **(optional)**
* `password` - password for net use authentication if required **(optional)**
* `secure` - defines whether the HTTP or HTTPS protocol should be used **(URI only)**

* Global Script Configuration
* `pingWait` - wait time after failed server ping
Expand All @@ -42,6 +45,17 @@ Here a short description of the available parameters which can be configured:
* `pingTimeout` - how many milliseconds pass before the ping is canceled
* `debug` - enable or disable debug messages on current reconnection state

### UNC Example Configuration
If your share is accessible over an UNC path like `\\\192.168.1.1\path\to\share` use this configuration.

`Set srvCfgUnc = createUncSrvConfig("192.168.1.1", Array("path\to\share"), Array("Z:"), "yes")`


### URI Example Configuration
If you share needs to be accessed over HTTP(s) like `http://my.webserver.com/path/to/share` use this configuration.

`Set srvCfgUri = createUncSrvConfig("my.webserver.com", Array("path/to/share"), Array("Z:"), "yes", true)`

## Features
* Automatic reconnection of network drives and shares on logon or unlock of the workstation.
* Stealth script execution (operates without exposing any prompts or windows - except when debug is enabled :P).
Expand Down
2 changes: 1 addition & 1 deletion build/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set log_files=0

REM --- Packaging Variables --
set prj_id=nsr
set prj_rev=v1.2.5
set prj_rev=v1.3.0
set prj_fullname=Network Share Reconnecter

REM --- File Variables ---
Expand Down
Loading

0 comments on commit 014567f

Please sign in to comment.