Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Allow drive mapping for only one terminal server user 1

Status
Not open for further replies.

warby1212

Programmer
Joined
Jun 9, 2003
Messages
183
Location
AU
Hi,
We want to allow drive mapping for only one or two terminal server clients but I really can't see how this is done. Is it possible?

Regards Stephen

I should write something here.
 
Yes, you can certainly do this. Two ways. First and most obvious is to manually do it in the users profile. With only 1 or 2 users this is a viable solution.

Your other alternative is to script this.

Being a fan of automation, and the prospect that you MAY find need to add more users as time goes on, I would script it.

Refer to my FAQ on the subject for details.
faq329-5798

I hope you find this post helpful.

Regards,

Mark
 
Thanks Mark,

I've been trying to configure the individual user but admit I am a little out of my area, could I ask you for a little more information?

Regards Stephen

I should write something here.
 
In the FAQ you will see in the sample script that it grabs the user login as UserString.

You can use a select case statement to then take action for your specific users.

Code:
Select Case UserString
     Case "JohnSmith"
          WSHNetwork.MapNetworkDrive "H:", "\\server\users\" & UserString,True
          WSHNetwork.MapNetworkDrive "U:", "\\server\users",True
          WSHNetwork.MapNetworkDrive "X:", "\\server\executables",True

     Case "BettyJones"
          WSHNetwork.MapNetworkDrive "H:", "\\server\users\" & UserString,True
          WSHNetwork.MapNetworkDrive "U:", "\\server\users",True
          WSHNetwork.MapNetworkDrive "T:", "\\server\Timerbline",True

End Select

I hope you find this post helpful.  

Regards,

Mark
 
Thanks Mark , your're a champion !

Cheers Stephen

I should write something here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top