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

Auto-map Local Drives

Status
Not open for further replies.

snootalope

IS-IT--Management
Joined
Jun 28, 2001
Messages
1,706
Location
US
hello

-Windows 2000 server sp4
-Citrix FR3

A few of my clients who log on remotely have partitioned their local disk into a C and D. Well, their running XP. So that creates Admin shares (C$,D$) for both drives. I need to prevent ONLY that D$ from mapping when they log on.

I've tried of corse stopping the share and stopping the Server service and that just doesn't do the trick. I've search all over the registry, but maybe i'm not looking in the right place.

Even if i could make it so those local drives connected and became the drive letters that i want them to, like Y and Z, that'd be fine to.

Any ideas?
snoots
 
Hi,

You could add to usrlogon.cmd

Net Use C: /D >NUL: 2>&1
Net Use D: /D >NUL: 2>&1

Net Use Z: /D >NUL: 2>&1
Net Use Z: \\Client\C$

Does this help?

Cheers,
Carl.
 
Sure, but where's the usrlogon.cmd? I'll check it out..
 
Winnt\System32\usrlogon.cmd :-)
 
Ah, windows 2000 server doesn't even use that file though.. I think that is for pre-2k OS's. maybe.. I did a couple of tests with that file, even deleting it, and logon procedures are all the same with now errors in the even log..
 
Hi,

It's not for Pre-2000 servers. It's for application compatibility scripts.

On all my servers it runs part and parcel.

It's actually set in:-

HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

AppSetup

Which has:-

UsrLogon.Cmd,updatdrv.exe,cmstart.exe

If you want to run a script, just add yours into this key and it will be run for everyone .... regardless!

Hope this helps.
Carl.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top