Link to home
Start Free TrialLog in
Avatar of txsolutions
txsolutions

asked on

Location based terminal server logon script

Hi,

I have a questions to which I can't seem to find any documentation on the net.

I have a few clients which use terminal services. Currently when a head office user goes to a brach office all his printers are still defaulted to the head office one's as that is his group membership which the currently logon script works off.

What i'd like to achieve is to create a logon script which either grabs the client device name, or client IP address and based on that assigns a set of printers and default printers which apply in this location. This would then mean that it doesn't matter who logs onto the workstation, but only which workstation logs on. If there's some sort of variable in vbs i can use to grab the client device name please let me know! i tried session name which only returns the computer name of the terminal server...

Any help or pointing into the right direction would be an absolute godsend!!

Thanks to all in advance! :-)
Avatar of cfairley
cfairley
Flag of United States of America image

Hello txsolutions,

To accomplish this by using a script would be an administrative nightmare.  Each time a printer was deleted, added, or changed, the scripts would have to be modified to reflect that.  I would recommend setting up printer locations.  It detects which site a user is located at and alters the search for printer feature in AD.  When the user want to print, they search AD and only the printers in the site show up.  Of course they are all named with names that clearly identify them.  Here is a link to set it up.

http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/directory/activedirectory/bpadprn.mspx

Thanks,
cfairley
Avatar of txsolutions
txsolutions

ASKER

Hi Cfairley,

firstly, thanks alot for the quick reply to my question! :-)

The situation is more relative to smaller sites with rather static configurations. They also run a custom application which statically points to printer queues based on the login name. This is of course a problem when that users moves from site to site. One of the things that this application however can do is point to the default printer queue. Thus my thought was, if i set up all terminals with a 3 character prefix per location and then map printers based on that prefix of the terminal i can assign the correct default printer to the user and then this problem is solved.

I do take onboard though the warning of the increased admin overhead when changes to the network occur, but as i said, these are smaller and quite static turn-key type networks which I'm dealing with at the moment. (last printer change for one particular site was back in 2001... :-) )

Any help is very muchly appreciated.

thanks again for the reply cfairley!
ASKER CERTIFIED SOLUTION
Avatar of cfairley
cfairley
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial