Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Re: Script based on Connecting Client IP Windows Terminal Server

Reply
Thread Tools Display Modes

Re: Script based on Connecting Client IP Windows Terminal Server

 
 
Al Dunbar
Guest
Posts: n/a

 
      10-17-2008

"entsupport" <u46980@uwe> wrote in message news:8bce696d82375@uwe...
> Hey I got a good scripting question for you gurus out there. We are trying
> to
> write a script that will copy certain files to a user desktop when they
> log
> onto a Windows Terminal server. Sounds easy but does anyone know how you
> can
> check against a clients connecting IP address. We have a multi site
> practice
> and each location has there own perscription printer within there site. If
> someone travels between locations they have to maually select the printer
> for
> that location within our practice management software. We are able to have
> ini files that will populate the default printer based on location but we
> need to know what office they are connecting from so that the system knows
> which file to copy over.
>
> The issue is how can windows tell what client machine is conected to the
> terminal server so we can have the proper files copied for that location.
>
> Thanks in advance for any help provided.
>


try running this script from a terminal services session to see if it gives
you what you need:

@echo off

if /i "%clientname%" EQU "Console" (
echo/you are logged in to %computername% at the console
) else (
echo/you are logged in to %computername% from %clientname%
)

/Al


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Windows 2003 Server Connecting to Windows 2000 Server Terminal Services Don Wilwol Windows Server 1 05-09-2006 11:11 AM
Client Troubles connecting to Terminal server. Learning Server Networking 0 01-23-2006 05:20 PM
Script for client DOS connecting to a SBS 2003 Server Daniel Resende Server Networking 3 12-17-2005 03:47 PM
Windows 98 connecting to 2003 terminal server problem Scott-BrisQld Windows Server 1 11-22-2004 06:51 AM
Windows 98 connecting to 2003 Terminal Server Scott-BrisQld Server Networking 5 11-22-2004 05:43 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59