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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Map Client Drives at Logon

Status
Not open for further replies.
Jan 24, 2003
57
GB
Does anyone know if there is a way of automatically mapping local client drives for Win 2000 Terminal Services users? I have tried the Drive Share utility included with the Win 2000 Resource kit but it doesn't work with SP3. Microsoft recommend using a logon script with net use, which is okay, apart from the fact that the drives need to be manually shared on each PC before this will work. If anyone knows a better way it would be appreciated. Thanks.
 
You don't need to explicitly share the drives,
you can use system shares which by default are enabled

net use z: \\server\c$



Breakerfall
®º°¨¨°º can you ping me now...GOOD! º°¨¨°º®
 
Thanks - I have tried to do it that way but then the users need admin access. (Also the A and CD Rom drives are not shared by default.) I also tried using net use with an admin user and password in the script, but it still prompts for a username and password the next time you try to connect, which is a bit annoying. Any other suggestions?
 

then you have to specify the user rights on the command.

net use z: \\server\c$ /user:myself@mydomain.com

run C:\>NET use /? to see all the options,
play with them, let us know which one worked out.



Breakerfall
®º°¨¨°º can you ping me now...GOOD! º°¨¨°º®
 
Sorry - have already tried that as well, using a domain admin username and password. It works when you run it from within the user session, but if you put it in the logon script it maps the drive at the time, but the next time the user goes to the drive, it will have a big red cross through it, and when clicking on it, the user is prompted for a username and password. I think this is a Win 2000 'security feature' - have read some other posts about it, but haven't found the answer!
 
Try /persitent:no in the logon script.
this will force it to remap the drive with the correct authenication each time.
 
Thanks to everyone for your suggestions on this. I've managed to fix it now. What I didn't realise was that the domain login script was conflicting with the local login script and disconnecting the drives as fast as I was mapping them - hence the red crosses! Once I sorted that all the above methods are now working. Although I'm still having to manually share the A & CD drives so if anyone has any thoughts about that... Cheers.
 
net share command?

"Work to live, don't live to work"

"The problem with troubleshooting is that sometimes it shoots back"
 
That would be great if it worked across the network, like netshare A$=\\%clientname%\A:. Doesn't seem to work though - do you know it's possible? Thanks.
 
why not share them without hiding them or add non admin rights to the default shares?

more to the point, why do you need to share them anyway?
 
I could do that, but it would still need to be done manually on each machine, so it makes no difference either way. From a security perspective, it's obviously better to hide the shares, and only give them admin rights.

The reason I need to share them is to give users the same functionality as Citrix on a Terminal Services server.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top