Discussion Locked

Group plicy works intermittently!!

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a group policy object called "Map users".
In this policy I have logon script policy(User configuration >Windows setting >scripts>logon)

This script basically maps users to different folder on the server.
The problem is that the script, for some mysterious, reason doesn't work all the time. Even though it's in the same OU as the users and the client computers and is linked to it.
I?m not sure if it?s the user or the client computer that?s determining whether the script works. It?s very intermittent

This is a copy the script:
(' Map the G to apps
Set objNetwork = Wscript.CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "G:", "\\servername\ClientApps"

'Map H to user's home drive
set wshnet = CreateObject("WScript.Network")
username = wshnet.userName
wshnet.MapNetworkDrive "H:", "\\servername\Users\" & username
)

I would really appreciate any help.
Canaan

2 replies

by 5jgibbs

for starters i would try making a script that just runs the simple cmd command of gpupdate /force

for a login script.. see if that fixes the problem.. if it does then you know its a communication problem. if it does not.. than you can be suspicious of that login script..

This discussion is closed to new replies.