Creating a terminal server only login script/batch file

Hi guys,

I am looking to create a logins script for some of our users who will be logging into your Terminal Server both internally for Mac/Linux users and/or externally for Windows users.

We have setup the server now, so I am working on the login scripts. We use a webdav provider as our network drives. I can connect to these manually using a NET USE command, and the user is then prompted to enter their credentials.

I would like to have it so that when the users login to the TS server they get their drives mapped but should the login normally i.e. on their work laptops when in the office, it gets ignored.

How can I go about achieving this? I am not so good on scripting so any assistance would be appreciated. I was told this can be achieved by both VBScript or Batch file commands but again I don't know enough about scripting to do this.

Many thanks,

Ambrish
LVL 2
ambri5hAsked:
Who is Participating?
 
ambri5hConnect With a Mentor Author Commented:
@ PaulJP -

The problem is that its going to be multiple users, meaning they won't all have the same passwords... and it should only be running when they are on Terminal Server not when they ordinarily sign in to their machines.
0
 
PaulJPConnect With a Mentor Commented:
Setup a Group Policy that runs a login script with the password in it
0
 
ambri5hAuthor Commented:
It was good but as per my comments to use user afterwards, it wasn't what I wanted.
0
All Courses

From novice to tech pro — start learning today.