Solved

Windows 7 45 users 1 machine different drive mappings

Posted on 2015-02-18
16
197 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 56

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 90

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
 
LVL 90

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 90

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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 90

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 90

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 90

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 90

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 Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
Article by: Lee
Windows 7 Ultimate and Enterprise (and 2008 R2) introduced a new feature you may not be aware of - Boot from VHD.   Boot from VHD (or what Microsoft refers to asNative Boot allows you to install Windows to a VHD (Virtual Hard Disk) file that is t…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now