Question Locked

Drive Mapping

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

Hi Guys,

I wanna make a bat file where according to the user logn it will silect the correct bat file and map the drive for the user. How to do this can some one give me some idea. But not from the Server end.
e.g. if david logs in to the pc based on the user name it should pick up the correct bat file and run to map david's folder mappings.

9 replies

by wizard-09

Are you running at a domain level?

You can map the drives with a logon bat for the user, so when the user log's on the drives will be mapped.

Can you create a logon script, also you can use GPO's for your OU's.

I would go with logon script if you can use this one.

Hope this helps.

by bizzo

If you want a mapping batch file for each user, then call the batch files uname.bat, where uname is their login name.

And in the main batch file that gets called for every user, just the one line:

-------------------------
call %username%.bat
-------------------------

If you want to keep all the mapping in one batch file, then the script would be:

-------------------------
goto %username%

:user1
net use x: \\server1\share1
net use y: \\server2\share1
goto finish

:user2
net use x: \\server1\share2
net use y: \\server2\share2
goto finish

:finish

-------------------------

Or you could use an IF/GOTO statement to check %username%.

by jdclyde

so, where does this call go?

I am going to be doing this soon, as it seems that all my Novell server is doing is a login script that sets up shares, and I am looking to get rid of that server ASAP.

I have never done startup scripts on xp. is there a directory to just dump that bat in or do I have to edit the file?

by Member 25348569

If you're going to end up with a 2003/2008 server and logins to AD, of course. The AD user has a placeholder for a personal login script but you'd be better off with a single login script.

If you want any help - I'm our local scriptbitch. NetWare scripts->vbscript, a speciality.

:)

by jdclyde

Will give me something to do this afternoon.

B-)

by jdclyde

my first step would be to just do a local script (only on three system that are local) so I can phase out the Novell.

The Novell is running off a PC, so that is going to get wiped and will become MY workstation.

THEN, I need to read up on AD.

I am still bummed out. Was kind of looking forward to learning Novell. Finding out it is such an old version lessens the disappointment though.

It is strange going from an all *nix to all Windows environment.

The 2003 server is the domain controller, but in a very limited fashion ( I guess ).

Looking to tear it apart and start from scratch.

The 08 server I am working on is going to just be a very basic web server.

by Member 25348569

Your DC will have the capability to give you central management. Just a matter of a learning curve. Given some of the questions we get on this board, you can see that that it isn't that steep a curve!

:D

This discussion is closed to new replies.