Discussion Locked

Login script for Mapping

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I need help with mapping one of the drive on the server to the users that login to that server.

Example: I have a server A with two partions and C: and D: drives. I want to map few users to D$ drive through the login script.
How do I do that. I don't want to give them the administrator password. They need complete access to the D drive as we have applications there that needs the D drive to be mapped. I can't use a shared folders as the application won't work.

Please help.

Thanks,

7 replies

by parbo

You can use the "net use" command and supply a user/pwd with admin priveliges to the drive/share.
Type "net use /?" at a command prompt for complete syntax help
hope this works for you

by elmagoal

This page will allow you to learn all you need about login scripts http://kixtart.org/
and you can download the software for free.The line will look like this:
IF INGROUP("ADMIN-3")
USE F: "\\server name\Shared folder"
USE S: "\\server name\Shared folder"
USE J: "\\server name\Shared folder"
ADDPRINTERCONNECTION("\\server name\printer name")

This is using kix. Replace USE with net use in a batch file.
ENDIF

by justinf

You can create a new share for the D partition and map drives to that share rather than the administrative share D$. You can control access to the new share easily.

Use kixtart 95 on the NT 4 resource kit supplement 4 CD to map drives according to group membership.

This discussion is closed to new replies.