Solved

Drive mapping through Group Policy

Posted on 2011-03-03
5
825 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

Question has a verified solution.

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

Suggested Solutions

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
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 a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

738 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