Solved

Why won't Mapped Drives Group Policy apply?

Posted on 2010-11-28
3
610 Views
Last Modified: 2012-05-10
We've recently deployed several GPOs that map network shares based on group membership.  The policies were all set up exactly the same except for changing the drive and the group having access to it.  The shares have permissions configured the same.  And the security groups are set up the same.

The problem is that two of the GPOs work fine, with the network drives appearing for the appropriate people.  The other three policies don't seem to apply correctly and the mapped drives don't appear for the users in the respective groups.

Has anyone seen this before and if you have, can you help me?  Thanks.
0
Comment
Question by:cclausen1
3 Comments
 
LVL 27

Expert Comment

by:KenMcF
Comment Utility
How are you mapping the drives, thought scripts or using GPP?

If you are using GPP and your clients are running XP do you have the client side extensions installed?

If you run gpresult as the user do you see the policy being applied?

Are the GPOs linked to the OU the users are in?

0
 

Author Comment

by:cclausen1
Comment Utility
The drivers are being mapped using GPP.

We're working in a terminal services environment with all servers running 2008.

I'll run and check gpresult.

The GPOs are linked to the OUs the users are in (triple checked).
0
 
LVL 1

Accepted Solution

by:
fhp-na earned 500 total points
Comment Utility
I'm sure you have checked this, but double check the destination folder permissions.  Win2k8 is smart and if permissions are not set properly, the drives will not map.  I have personally had this problem.  Even if NTFS permissions are set, something may not be propogating properly (file server reboot should fix this).  You can also try creating a vbs file that maps the same drives and apply it manually to test and verify that these paths can be mapped correctly.  Here is a sample vbs mapping script
Dim WSHNetwork, objNetwork, objShell, WshShell, regkey, SRegMarkerValue

Set objNetwork = WScript.CreateObject("WScript.Network")

Set objShell = WScript.CreateObject("WScript.Shell")

Set WSHNetwork = CreateObject("WScript.Network")





'Disconnect ALL mapped drives

Set clDrives = WshNetwork.EnumNetworkDrives

For i = 0 to clDrives.Count -1 Step 2

    WSHNetwork.RemoveNetworkDrive clDrives.Item(i), True, True

Next 





On Error Resume Next

'Map all drives

objNetwork.MapNetworkDrive "H:", "\\fileserver\path"



On Error Goto 0



'This is to set the autodisconnect for drive mapping to "Never"

Set WshShell = WScript.CreateObject("WScript.Shell")

regkey = "HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\autodisconnect"

On Error Resume Next

readreg = WshShell.RegRead(regkey, -1, "REG_DWORD")

If Err Then

		Err.Clear

		RegRead = Null

	End If

'Adds autodisconnect registry key if not found or if different

If regkey <> readreg Then

WshShell.RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\autodisconnect", -1, "REG_DWORD"

End If



Wscript.Quit

Open in new window

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

762 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

6 Experts available now in Live!

Get 1:1 Help Now