Solved

Drive mapping through Group Policy

Posted on 2011-03-03
5
822 Views
Last Modified: 2012-05-11
I have inhereted a very badly designed AD. Slowly trying to correct it, but have one specific problem that is driving me nuts.

They currently have users within an OU with Group Policy login script mapping an O: drive. We have another OU directly below that which also has users and needs to have their drive mapped to O:.

The problem is that I have certain users that do not get the drive mapping assigned to their Group Policy, but the Group Policy directly above them.

There is no common thread to the users. Some have new Windows 7 machines others have old Windows XP machines. Some are local to the building and others are remote. Nothing shows up in the event logs. If you manually run the login script, they get the correct drive mapping. We also have had success with them logging off and then back on and getting the correct drive mapping.

I even tried to use the new Drive mapping optinos within the Group Policy and not use the login script. Nothing has worked.

Any other thoughts idea would be greatly appreciated.
0
Comment
Question by:VitalSolutions
  • 2
  • 2
5 Comments
 
LVL 6

Expert Comment

by:CrowaX
ID: 35026961
So if I understand correctly, both sets of users need O: mapped, but to different places, correct?
0
 

Author Comment

by:VitalSolutions
ID: 35026970
That is correct
0
 
LVL 6

Expert Comment

by:CrowaX
ID: 35027144
If the drive is already mapped to one place, then it has a hard time mapping the same letter to another location. You may want to try adding to the start of your script a line to disconnect the O: drive first then remap. Maybe that will work. Something like the following:

NET USE /DELETE O:
NET USE O: \\server\share

Also try a GPRESULT /R  in the command prompt to be sure the group policy is being applied to that computer.
0
 

Author Comment

by:VitalSolutions
ID: 35027805
CrowaX

The scripts were set to delete the O: drive and then recreate. We had verified that the group policy had applied everytime.

I did find the solution to the problem, and have tested on every user that has been having a problem and it has worked without fail.

The issue is that the login scripts were running asynchronously. You need to modify the scripts to run synchronously. You can do that by modifying a domain level group policy for Run login scripts synchronously. This can be found at Computer Configuration\Policies\Administrative Templates\System\Scripts.
0
 
LVL 1

Accepted Solution

by:
sanren earned 500 total points
ID: 35029267
On the Win 7 machines you may also run into a problem with the UAC.  Win Vista and Win 7 have two users for every profile, admin and the user.  The login script will map the drives with the admin but not show it to the user.  Since the script ran and the drives mapped, you will not get a script error or an error in event viewer.  The only thing I found to correct the problem was to add a key to the registry.
--------------------------------------------------------------------------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]

"EnableLinkedConnections"=dword:00000001

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

Create a .reg file with the above entry and run it on your Win 7 boxes and it will fix the UAC problem.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
see android hidden files 10 102
Windows mapped drive communications - Secure? 5 47
Sony EVI-D70 and Skype 2 37
Autorun Remote Desktop - USB Stick 6 30
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.

828 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