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

Default Mapped Network Drives

Status
Not open for further replies.

tomomark

Technical User
May 23, 2003
109
GB
Hello people,

Im currently running a Windows® 2000© Client - Server Network; Running AD, With GPO setup to determine user groups permissions.

My question, is there anyway that i can setup default mapped network drives for a specific group or ever computer without have to map the drive on the individual computer.

i.e Members of OU [Restricted] upon login have say T:\ mapped to \\server\public

I want to map several drives to each OU / security group...each user already has there home area specified by the profile...

...im prob just being thick and have missed the option or sommot, any help wud be apriciated.

Cheers,
Mark
 
Hi,
What you could do is create a batch file with a run of if commands (if you are familiar with these). Stating that if they are a member of a certain group use the net use command to map the drive.

Then put the script into the netlogon share of you AD. This will replicate around but nobody will yet be affected. The people that you want to use the script will need the path and name of the script put into the login script line which you will find on the user account properties.

Hope this very breif message helps.
 
Hey,

Thanx for the reply, i havent used batch files before unfortunalty...ill have a search around the internet but any advised u can give would be great

cheers,
Mark
 
Hey again.

im aware of the commands such as NET USE Q: \\TAZ\ARTICLES
but i have no idea how to put these into a batch file

im assuming that u use the file extention .bat is that correct?

mark
 
Tomomark,
It is not difficult to do what you want in a .bat file. But, you will need to get either the win2k resource kit or down the ifmember.exe tool. In your batch file you would set it up as follows.

:admin
ifmember Administrators
if not errorlevel 1 goto sales
net use \\servername\sharename /persistent:no

:sales
ifmember sales
if not errorlevel 1 goto next group
net use \\servername\sharename /persistent:no

Rinse and repeat as needed.

 
Hey,

Rite i think im being completly thick today...lol

Rite this is what i did...

installed RES KIT

Opened up notepad

:admin
ifmember Administrators
net use T: \\server\public /persistent:no

saved as map.bat

droped it into NETLOGON folder

set in GPO as login script

and no joy
 
i have fixed it :p

was just a typo :$

mark


cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top