Solved

How to rename a local mapped drive on a thin client

Posted on 2004-09-30
5
346 Views
Last Modified: 2007-12-19
Although I am no scripting guru I have setup a Group Policy Login Script on my W2K3 Terminal Server box to map the local floppy and cdrom drive on my PXES linux based thinclient boxes.  

The commands I use to map the drives in the .bat file are:

net use z: \\%clientname%\fd /user:root password
net use x: \\%clientname%\cdrom /user:root password

The drives map successfully when the client logs on but I would like to know if there is a way to rename the drives to something more user friendly for an educational unit - it currently lists them in the following format:

cdrom on thinclient (P123456789012) (z:)

0
Comment
Question by:traceylb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 6

Expert Comment

by:youre1m
ID: 12198034
0
 
LVL 9

Accepted Solution

by:
SamuraiCrow earned 500 total points
ID: 12204485
I've had a simular problem with renaming printers in a terminal services session.  What I did was create a script that I placed in the users startup folder.  It renamed their printers to something that the problem application could print to (it didn't like the insanely long printer name).  In just a cursory search I have come across a script that will rename a mapped drive:

mDrive = "drive letter"
Set oShell = CreateObject("Shell.Application")
oShell.NameSpace(mDrive).Self.Name = "AnyName"

The drive letter is any mapped drive and the AnyName is whatever you want to call it.  Plug this into a vbscript and set it to run in the users startup folder (or your favorite script delivery method) and take off.  Now if you are looking to get rid of the session name (usually the computername) I don't know of a way to get rid of that.  But I can always do some digging if you would like.

Hope this helps
Crow
0
 

Author Comment

by:traceylb
ID: 12216548
Thank you for both of your suggestions and I will be testing what works on Wednesday when I get back into the office as I had a couple of days off.
0
 

Author Comment

by:traceylb
ID: 12216603
Crow...Just on your comment about the computername, I don't think it will matter if it shows as long I have something more recognisable as the description and I will leave it up to the teachers to explain to the students the way it is set out.  Unless the teachers tell me that solution is not good enough of course.
0
 

Author Comment

by:traceylb
ID: 12344479

Sorry for taking so long to assign points for this question...I had a problem with my Terminal Server that took me a while to work out and since I had implemented some of these changes I had to backtrack a lot before I realised it wasn't anything I had changed after all.  

My testing of the solutions provided up until the server problems proved that SamuraiCrow's answer was the best solution.  

Thank you both for all your helpI
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question