Solved

Windows 7 45 users 1 machine different drive mappings

Posted on 2015-02-18
16
199 Views
Last Modified: 2015-03-23
I have a client where they have  about 45 users that at any point can log in from a shared conf room pc to execute a login script

I am not sure if there is any limitation to the # of local profiles, but not all drive mappings from the prior user are always deleted/disconnected cleanly.

Anyone have any suggestions as to how they handled something like this? RDP would be troublesome.

I could just make one user for each department so we have only a handful of profiles?
Is there a limit to the # of profiles on a Win 7 machine? I just dont think it would be a great idea to have 45+ local profiles on a win 7 machine.

Thanks!
0
Comment
Question by:LICOMPGUY
16 Comments
 
LVL 57

Accepted Solution

by:
Cliff Galiher earned 250 total points
ID: 40617654
I've done a few large scale point-of-sale systems that have many more users than what you are dealing with. Honestly 45 is a relatively small user count and windows can easily handle that (not concurrently, of course.)

 As far as drive mappings, you must have something else going on. In a normal setup, drive maps are stored as a user setting in the user's registry. Which means another user does not have those same mappings (even if they didn't unmap cleanly at log-off.)  Like many other user settings, my default printer can be different than another user's, whether I set my mouse up to be left-handed while another user's is right handed, desktop wallpapers, etc. When one user changes their wallpaper, it doesn't change it for other users. Well, drive mappings work the same way. They are intrinsically per-user by default. There are ways around that, but that would then be an issue with the login script, not with Windows or the number of local profiles.
0
 
LVL 93

Assisted Solution

by:John Hurst
John Hurst earned 250 total points
ID: 40617655
The way I would manage this is by a connection script. Set one up and delete the map before creating it.

NET USE Z: /Delete
NET USE Z: \\server\share

This permits always being able to map a folder.

Set up a script for each user.

I would expect a computer to drag with 45 profiles because of temp files and indexing. Also OST files if an Exchange setup.
0
 

Author Comment

by:LICOMPGUY
ID: 40618161
Guys

Thanks for the responses. So are you saying directly before the net use to map, the line prior should just be a net use z: /delete and that will always clear it out for the net use map to the share?

Thanks!
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 93

Expert Comment

by:John Hurst
ID: 40618558
the line prior should just be a net use z: /delete and that will always clear it out for the net use map to the share?   <--- Yes
0
 

Author Comment

by:LICOMPGUY
ID: 40618632
Ok - so every line for a net use to execute a drive mapping, immediately before should use the /delete - correct?

You have done this before and don't see any problem with 45 or so users having a local profile?

I thought I tried this once before and felt it executed so fast that it didn't do the delete consistently.
Have you seen this occur?
Thanks so much
0
 
LVL 93

Expert Comment

by:John Hurst
ID: 40618714
so every line for a net use to execute a drive mapping, immediately before should use the /delete - correct?  <-- I would. The purpose is to prevent persistent drives using the drive letter you are trying to map.

I see a dozen users on a computer. I have not had 45 users.
0
 

Author Comment

by:LICOMPGUY
ID: 40628616
Hey John

What seemed to work and the DC is Win2k12, was using the net use * /delete /yes.

The only issue(which I have to test again, is it seemed to delete their home dir mappings which is obtained thru their profile,
so I commented it out until later when I can go back on site.
Would that make sense that it would remove that? If so  - any thoughts on how I could prevent that?
I am guessing that the login script executes after the profile maps the user home dir.
Thanks again!
0
 
LVL 93

Expert Comment

by:John Hurst
ID: 40628749
I am guessing that the login script executes after the profile maps the user home dir

I would consolidate the mappings so that you can delete by folder mapped before mapping. The only reason for doing this is to prevent persistent mappings from preventing a new map.

Consolidating mappings into one script will solve the problem.

Otherwise, limit the delete statements to the folders in the script and do not delete other mappings.
0
 

Author Comment

by:LICOMPGUY
ID: 40629629
Hey there

THanks for your help
Can you see any issue if I were to just list out the "NET USE Z: /Delete,  at the beginning of the loginscript, replacing z with all possible drive mapping letters and have the net use delete run for each letter whether or not the user has that drive mapping or not?  Do you think that would slow down the execution of the loginscript or cause it to hang?

Thanks
0
 
LVL 93

Expert Comment

by:John Hurst
ID: 40629637
Deleting a mapped drive before mapping again does not slow anything down. Has not for me in years of use.
0
 
LVL 59

Expert Comment

by:LeeTutor
ID: 40677894
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0
 
LVL 93

Expert Comment

by:John Hurst
ID: 40677895
I think we answered this question very well.

I suggest split:   http:#a40617655  and http:#a40617654
0
 

Author Comment

by:LICOMPGUY
ID: 40681601
All worked out perfectly!

I did a NET USE "n": /Delete at beginning of the scripts so it cleared all - it looks like we are good, Thank you - you were a huge help!!
0
 
LVL 93

Expert Comment

by:John Hurst
ID: 40681607
@LICOMPGUY - If we helped you out and solved your issue, then you should close the question properly instead of abandoning the question.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
WMIC Command LIne 5 28
Scheduled Tasks Tweak 5 32
Application Crash 2 23
Domain administrator account is locked out 31 58
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question