I am running Windows Server 2008 Standard Edition with a Windows XP Pro workstation setup as a test unit.

I have added an Organisational Unit called 'Misc Users' and have linked a GP called 'Basic Security GP' to the OU. Any changes I make to the GP are almost immediately reflected on the workstation. I have removed the control panel, run and setup roaming profiles which map successfully from the H drive to my share on the server.

I want to add another mapped drive as a test. I have created a simple share on the server which is:


So I have edited the GP and added a mapped drive with the following settings:

Action: create
Location \\server\miscusers
Reconnect: No
Label As: Misc Users
Use: O
Show this drive is selected

but the mapped drive never shows up for my user.

Is there any reason for this? I have prevented the A, C and D drive from being shown in My Computer but as this drive is O it should work.


1 Answer 1


Group Policy Preferences work great on Vista and newer OS. If your environment is all Vista or newer, use Preferences. It's straight forward, easy, and works. Preferences will not work on XP unless you have the XP CSE installed. Even with the CSE many people have reported "issues" with them working reliably. GPP is not available for older OSes than XP SP2.

Here's a copy of the MapDrives.vbs script we use. Works flawlessly on WinXP/Vista/7/2003/2008/R2.

' Author: Chris Stone
' Date: 29 MAY 2009  Version: 1.3
' Purpose: Map network drives

On Error Resume Next
Set objNet = CreateObject("WScript.Network")

Public Sub CheckAndMapNetDrive(Letter, Path, Persist)
    'Check if drive letter is already used
    Set colNetDrives = objNet.EnumNetworkDrives
    For i = 0 To colNetDrives.Count - 1 Step 2
        If colNetDrives.Item(i) = Letter Then
            'Drive Letter Exists, Test if it's the same Path
            If colNetDrives.Item(i+1) = Path Then
                'It's the same, no new mapping necessary.
                Exit Sub
                'It's different, remove old.
                objNet.RemoveNetworkDrive colNetDrives.Item(i)
            End If
        End If
    'Drive does not exist now, never did or removed.
    objNet.MapNetworkDrive Letter, Path, Persist
End Sub 

CheckAndMapNetDrive "X:", "\\server\share1", True
CheckAndMapNetDrive "Y:", "\\server\share2", True
  • Thanks for the link, I'll try that first thing tomorrow. Is there an alternative to preferences?
    – dannymcc
    Oct 5, 2010 at 16:05
  • The policies section has settings for most things (mapped drives aren't in there, but you can write a quick script to map the drives, and scripts are in Policies). The Preferences section was developed by a company MS bought, and MS has never done much with it.
    – Chris S
    Oct 5, 2010 at 16:38
  • Ok, I'll try and find a decent tutorial on scripts in that case then. Thanks!
    – dannymcc
    Oct 5, 2010 at 16:44
  • @Dannymcc, I edited in the script we use here. See above.
    – Chris S
    Oct 5, 2010 at 17:22
  • Thanks, I'm viewing this page on my iPhone so I may not be seeing the whole script - where would I specify the network share location?
    – dannymcc
    Oct 5, 2010 at 17:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.