Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2109
  • Last Modified:

drive map gpo gpp not applying correctly.

i have defined a new GPO at the domain level. server 2008

defined in this policy is the new "drives maps" group policy preferences policy (user comfig\preferences\windows settings\drive maps), action used is "replaced"

when the policy does apply it maps everything as designed that is not the issue. the issue is for ex. i have 8 servers. i log on to multiple servers but the new drive mappings aren't taking place unless i manually run "gpupdate /force" on that machine.

i dont know if this will be the same for all the clients, is there anything i can do to ensure the policy applies every time. i dont want evry client to have to run a gpupdate /force command to get the new drive mappings.

0
dirkdigs
Asked:
dirkdigs
  • 7
  • 4
  • 3
  • +3
1 Solution
 
Dave StringfellowIT managerCommented:
Each PC will apply the GPO on reboot (or every 90 mins) so you should be ok.
0
 
naykamCommented:
Did you previously use a script to map the drives? Before moving to a group policy based approach?
0
 
robbeCommented:
You should configure the GPO's to run at logon time. You can find some more information over here:

http://support.microsoft.com/kb/314488
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
robbeCommented:
Sorry wrong link, here is the policy location:
Computer Config/Admin Templates/System/Logon/Always wait for the network at computer startup and logon:Enabled.
0
 
Gary StevensConsultantCommented:
One issue which may have been overlooked: If you had previously Mapped the same Drive Letters with a Login Script which Mapped them :persistently then they won't clear until you do it manually or force the GPO Update. I suggest you include a "map x /d" where "x" is the previously mapped drive as part of a logon script for all users. It should only be necessary to leave it in place for a day or 2 until people have logged on and the GPO will take over correctly from there.
GS
0
 
Er1cLCommented:
0
 
dirkdigsAuthor Commented:
@naykam: yes
0
 
dirkdigsAuthor Commented:
@GaryStevens:

do you mean delete all mapped drives first ?
0
 
robbeCommented:
Dirkdigs,

Did you removed/checked the script? Maybe there is still some lines of code that delete all mappings when logging on? Are there any events regarding the GPO extensions in the eventlog ?

Regards,
Robin
0
 
dirkdigsAuthor Commented:
@GaryStevens: should i create a new gpo for this and apply it to the domain level? should i do a computer policy or a user level policy ?
0
 
naykamCommented:
I experienced the same problem.

It took me a while but I found a work around.

If you are trying to use GPO to apply mapped drives, that were previously mapped with a script, you need to remove the reference points that still exist in the registry:

Delete any references in:
KEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2

Restart your computer.

Maybe write a script to delete theses (after testing) then you should find your group policy will work.
0
 
Gary StevensConsultantCommented:
dirkdigs
I suggest you use your old script to remove the residual mapped drives.
Where you had map X: \\server\etc change it to map X: /d
I would put a test in the script to check if one of the old mapped drives exists
then map X: /d
and at the bottom of the script add gpupdate /force
That will clear the old ones and then refresh the GPO
GS
0
 
dirkdigsAuthor Commented:
Does a logon script run before the Drive maps GPP ?

I inserted a logon script to delete al lthe mapped drives using NET USE * /DELETE /Y

i run gpupdate /force

when i log back on i have no drives.
0
 
naykamCommented:
Try removing the mount points as mentioned
0
 
dirkdigsAuthor Commented:
that has nothign to do with why the gpp is not mapping the drives now ...
0
 
naykamCommented:
try it
As I said, exactly the same problem I was having. Because the mount points still existed group policy would not map the previously scripted drives.
0
 
dirkdigsAuthor Commented:
i built this server after removing the vbs script.
0
 
dirkdigsAuthor Commented:
if i take out the delate all mapped drives script from my GPO it is fine. if i keep the logon script in place and map the drives using GPP the drives never get mapped.
0
 
Gary StevensConsultantCommented:
Dirkdigs
A couple of further things to consider.
The Logon Script will delete the drives (X: /D) but is often slow to complete the task before the GPO is refreshed.
Traditionally what I do to solve the problem is create a small file with a couple of characters in it. What they are doesn't matter.
Put this file in the \sysvol\folder (Call it MapDel.txt)
in your logon script add the following:

if exist == c:\mapdel.txt then goto DONE
Copy \\servername\sysvol\mapdel.txt c:\
map X: /d
and the other map ..... /d
:DONE
gpupdate /force
wait /30
essentially what this will do is check for the file on C:\ local. If it exists then it steps over the remaining script.
otherwise it copies the file to C:\ for the next login check.
the wait /30 slows the process down to allow the gpupdate /force to complete
It often a matter of timing. See how you go.
Gary
ps: please check the commands and syntax before use.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 7
  • 4
  • 3
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now