Brian Madden Logo
Your independent source for application and desktop virtualization.
advertisement
Brian Madden's Blog

Past Articles

Updated: Free new utility runs script when client IP or name changes or on session disconnect or reconnect

Written on Mar 16 2005
Filed under: ,
19,324 views, 13 comments


by Brian Madden

Note: This article now refers to version 1.3 of ReconnAct!, an update of the original version.

Dennis Damen, one of the two DADE Power Tools guys (see their other tools) and an employee of Login Consultants has created free utility called ReconnAct! that runs on a Terminal Server and creates two environment variables: CURRENT_CLIENTIP and CURRENT_CLIENTNAME. These variables are automatically updated when a user connects from a different client.

The best part is that you can also configure this tool to run a process (script, executable, etc.) whenever one of these parameters changes, so we finally have a way to update printer mappings when users log on from other workstations!

Version 1.2 introduces a the new ability to run a script on disconnect and/or disconnect! This means that we finally have a way to cleanly log users off after their idle time limit is reached!

Version 1.3 fixes some bugs and adds the ability to run a script that's hidden from the user.

To use this tool, you simply add a small 18kb executable called ReconnAct!.exe to the users' or servers' logon scripts.

I wish I had these five years ago! Download from the link on this page.


ReconnAct-v1.3.zip






Comments

Dennis Damen wrote BUG!!
on Wed, Jan 5 2005 11:46 AM Link To This Comment
I'm very sorry but I sent the wrong version. This version contains a bug. I will have access to the source when I get home tonight so I will update A.S.A.P.
Brian Madden wrote Re: Okay, the new version is posted
on Thu, Jan 6 2005 12:56 AM Link To This Comment
So download away! (Dennis says the next version is going to let us run scripts on disconnect too, which is awesome awesome awesome!!!
Dennis Damen wrote Milliseconds instead of seconds.
on Fri, Jan 21 2005 11:12 AM Link To This Comment
Using the 2K version you may experience high CPU usage. This is because the Timer routine uses milliseconds instead of seconds. For now, to correct this problem enter milliseconds on the command line. I.E. /t:5000 for a 5 second interval.
Guest wrote W2K Boxes
on Mon, Jan 31 2005 10:49 AM Link To This Comment
Also the new timer does not solve the problem - Dennis is investigating it.
the problem occurs, when more than about 15 reconnact!s are running...
Dennis Damen wrote Update available at portal.loginconsultants.nl
on Thu, Feb 3 2005 3:04 PM Link To This Comment
There's an update of the Windows 2000 version available on the Login Consultants portal.
Greg Wood wrote Wish
on Thu, Mar 17 2005 3:48 PM Link To This Comment
Wondering if this could ever run as a service since all of our users would have the same settings... I know it would probably change it significantly, but it would be neat :)
Guest wrote Re: Wish
on Mon, Mar 21 2005 7:51 AM Link To This Comment
Yes, it would be neat but...

1. The code would be far more complicated.
2. You'd have to install stuff on your server. (a service)
3. It would be more difficult to configure the tool on a per user or per group basis.

I admit it would probably eat less memory resources but I think it would overcomplicate things. Especially for the coder... And that's the biggest problem because that's me :D

..Dennis..
kim cunningham wrote Re: Re: Wish
on Sun, Apr 10 2005 9:02 PM Link To This Comment
This utility is just what we need for roaming sessions! However, can you give me any pointers on what kind of script to run?
We need to remap to the new default printer when the user goes to a different pc
THANKS

KC
Dennis Damen wrote Re: Re: Re: Wish
on Mon, Apr 11 2005 5:19 PM Link To This Comment
Check http://www.brianmadden.com/forum/fb.asp?m=11175 for a hint.
Todd Kramer wrote Is there a version for Windows NT?
on Wed, Feb 7 2007 5:59 PM Link To This Comment
Unfortunately, I've still got a few of these... :(
Guest wrote Unknown printer name
on Mon, May 19 2008 9:10 AM Link To This Comment

Hi

This tool seems to be a good thing.

But how can I map a local printer on a different machine, if I don't know the name of the printer?

Guest wrote ok, good, but not updating?
on Thu, Aug 14 2008 10:01 AM Link To This Comment

Ok, I get the CURRENT_CLIENTIP variable, and wrote a fun script  to map printers based on it, but it doesn't seem to be updating when I connect from a differnt site, do I need to have this .exe in the machine login script, user script, or should it work if I run it manually ??Also, resetting the Var. manually doesn't change the registry, and apperently VB pulls from reg. not mem ... silly VB

(Note: You must be logged in to post a comment.)

If you log in and nothing happens, delete your cookies from BrianMadden.com and try again. Sorry about that, but we had to make a one-time change to the cookie path when we migrated web servers.

Trackbacks

dennisdamen.com » ReconnAct 1.4 wrote dennisdamen.com » ReconnAct 1.4
on Sun, Feb 1 2009 4:46 PM

Pingback from  dennisdamen.com » ReconnAct 1.4