Network Drive's Access .bat file

I have windows 2008 server standard 64 bit and 20 client PC's running windows 7 32bit.
 Local server is a domain and running AD, DHCP, DNS, Terminal, and Exchange server.

when user log on to the server bat file run which has script and log the users to local drives such as H: J: K: L:

My question is can it be set that certain users have access to certain drives i.e. do you know the script or can individual script be written for each users
LVL 1
CJIT Consultant Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Richard QuadlingSenior Software DeveloperCommented:
There are environment variables you can use.

Open a command prompt up and type ...

SET

followed by the [ENTER] key.

You will see entries like ...

COMPUTERNAME
and
USERNAME


So, a batch file can use these like ...

@ECHO OFF
IF /I "%USERNAME%"=="RQuadling" (
 NET USE ....
 NET USE ...
 NET USE ...
)
IF /I "%USERNAME%"=="CJ_LONDON_2010" (
 NET USE ...
 NET USE ...
 NET USE ...
)

sort of thing.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CJIT Consultant Author Commented:
ok many thanks i will give a go
regards
if nay more suggestion please do let me know
0
Richard QuadlingSenior Software DeveloperCommented:
You could probably do all sorts of things using group policies (OMFOE).

If it is just the mapping, then putting this sort of script into the NETLOGON folder (and making it active etc. - don't know how, I just see it on out network), then this works.

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

CJIT Consultant Author Commented:
My thick brain didn't work or think about it
I already have an active bat file which runs the script for all users
What I will do is to create or modify the script for each user so that each user have an access to the drives they are assigned
Infact this will be better solution as it will not let the users see other drives which they not spouse to see
Many thanks for your help much aprecaited
If you want to know how to active these bat file I can post it here for future reference

Regards
0
Richard QuadlingSenior Software DeveloperCommented:
Don't worry about that. I don't need to deal with it in my work. The batch file technique I describe I already use for other systems.

0
CJIT Consultant Author Commented:
Thanks
0
Richard QuadlingSenior Software DeveloperCommented:
I see you've got 10 open questions (http://www.experts-exchange.com/M_5174522.html). Make sure you close those that have been answered. That is how we get our points.

0
CJIT Consultant Author Commented:
Ok I will do it the other 9 I am still waiting for postive responses. I will start off with your. Regards
0
Richard QuadlingSenior Software DeveloperCommented:
0
CJIT Consultant Author Commented:
Yes
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.