• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

Login Script - Windows 2003

I have different login scripts assigned to groups (payroll, marketing etc) that map to different shares with exlusive permissions. I would like to have a few specific users in both groups to get mapped to a single shared drive in addition to the drives already mapped. Is it possible to create statements in the existing login scripts that will map additional drives only for specific users?

Thanks
0
netman70
Asked:
netman70
  • 3
  • 3
1 Solution
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Sure.  Depends on what your login scripts are written in.  VBSCript, Batch.

Batch, you would use

IF "%username%" == "desireduser1" Net Use x: \\server\share1
IF "%username%" == "desireduser2" Net Use x: \\server\share2
etc

Or use ifmember - a utility you can download from Microsoft.
http://www.microsoft.com/windows2000/techinfo/reskit/tools/new/ifmember-o.asp
0
 
netman70Author Commented:
What would be "desireduser1"? I am using batch files...
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
The username.   Whatever that is.  
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Lee W, MVPTechnology and Business Process AdvisorCommented:
%username% is a variable set by the system, desireduser1 and 2 are just sample user names.
0
 
netman70Author Commented:
Just ignore my previous stupid question (about "desireduser1")...I wasn't thinking straight. I will check this out and get back to you. Thanks
0
 
netman70Author Commented:
works great! thanks much!
0
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.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now