Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Gpo applied but no change 1

Status
Not open for further replies.

aktaon

Technical User
Nov 3, 2009
17
0
0
US
Greetings to all:

We wanted to map a network drive on certain machines. We created an OU and moved the workstations to the new OU. We placed a script to map a network drive under C:\WINDOWS\SYSVOL\sysvol\ssknx.com\Policies\GUID\Machine\Scripts\Startup. On the group policy object editor, we selected computer configuration\windows settings\scripts\startup and point it to the script file. However, when we tried on the machines no drive was mapped. gpresult shows that it was applied but we do not see any drive mapped. Thank you in advance.
 
Change it to the User Configuration. Computer accounts dont have authority to map drives, its a user function.


RoadKi11

"This apparent fear reaction is typical, rather than try to solve technical problems technically, policy solutions are often chosen." - Fred Cohen
 
Thank you for quick answer. The reason I didn't want user configuration is that users have some special project that they work on separate workstations and they need different mapping than their usual workstations. I din't want to create them separate user account for the special project. Thank you again.
 
Loopback is normally used to secure or lock down a machine no matter who logs on, like a terminal server or public kiosk.

But you could use it to apply your logon script to anyone who logs in. Just set it up like a normal User policy, specifying a logon script.

Then navigate to:
Computer Settings\Administrative settings\System\Group Policy

You probably want to use "merge" mode, not "replace". This will apply the user's normal GPO, and merge the GPO that's on this special OU. "Replace" mode would disregard their normal GPO, and ONLY apply the special one.



Thanks,
Andrew

[smarty] Hard work often pays off over time, but procrastination pays off right now!
 
I have enabled loopback with merge option but that didn't do it. I may be missing something; I have placed the script at: C:\WINDOWS\SYSVOL\sysvol\domain.com\Policies\GUID\Machine\Scripts\Startup. I also tested it under user configuration but didn't work. Thank you.
 
This script should be located in \GUID\User\Scripts\Logon - remember this is a user policy, not a machine policy.

Thanks,
Andrew

[smarty] Hard work often pays off over time, but procrastination pays off right now!
 
You are right, it is a user policy and I did that but still not working. Thank you.
 
Did you simply create the login script and put it in the folder?

Did you also specify in the User section of the GPO for that script to run?

It could also be a problem with the script...are you certain it is not running?

Thanks,
Andrew

[smarty] Hard work often pays off over time, but procrastination pays off right now!
 
Yes I did, under user configuration\Windows settings\scripts\startup clicked add and browsed to the location of the script file and added it. Also I double-clicked the script and verified that the script is working. Thank you.
 
Are you sure you were in user config, not computer?

There is no "startup" script section in user config.

The proper path is:

User config\windows settings\scripts\logon



Thanks,
Andrew

[smarty] Hard work often pays off over time, but procrastination pays off right now!
 
My apologies, I was changing between user config and computer config and got startup from computer config. I did however, tried it under User config\windows settings\scripts\logon and still failed. May be I should build a lab and test with clean install of active directory. Thank you.

 
Run gpresult on a machine that is supposed to get it from a dos prompt - it should show you which GPO's are being applied.

Thanks,
Andrew

[smarty] Hard work often pays off over time, but procrastination pays off right now!
 
I did that and it shows that it was applied but I do not see any mapped drive. Thank you.
 
Can you post your logon script?

Can you try changing a different "user" setting in that GPO (something obvious like screensaver or wallpaper) and see if that gets applied?

Are you sure the users have permissions to read files in your script directory?

Thanks,
Andrew

[smarty] Hard work often pays off over time, but procrastination pays off right now!
 
Thank you for all your help. Yes users have permissioin to the script directory. They are power users group on the workstations. I have tried a few other policies like you suggested and none of them work. I have tried vbscript and batch.
Batch:

net use X: /DELETE
net use X: \\Computername\Share

VBScript:

Option Explicit
Dim objShell, objNetwork
Dim DriveLetter1, DriveLetter2, RemotePath1, RemotePath2
Dim AllDrives, AlreadyConnected, Network1, Network2, i

Set Network1 = CreateObject("WScript.Network")

DriveLetter1 = "X:"

RemotePath1 = "\\computername\Share"

Set objShell = CreateObject("WScript.Shell")
Set objNetwork = CreateObject("WScript.Network")
Set AllDrives = objNetwork.EnumNetworkDrives()

AlreadyConnected = False
For i = 0 To AllDrives.Count - 1 Step 2
If AllDrives.Item(i) = DriveLetter1 Then AlreadyConnected = True
Next

If AlreadyConnected = True then
objNetwork.RemoveNetworkDrive DriveLetter1
objShell.PopUp "Drive " & DriveLetter1 & " disconnected."

Else

objNetwork.MapNetworkDrive DriveLetter1, RemotePath1
objShell.PopUp "Drive " & DriveLetter1 & " connected successfully."

End if

Wscript.Quit

Thank you.
 
Did you enable both the User and Computer sections of the policy?

Thanks,
Andrew

[smarty] Hard work often pays off over time, but procrastination pays off right now!
 
First when I tested it I did, but later I disabled the computer policy. Thank you.
 
They both need to be enabled for loopback processing to work, but it sounds like you knew that...



Thanks,
Andrew

[smarty] Hard work often pays off over time, but procrastination pays off right now!
 
I was just testing everything possible but nothing seemed to be working for me. My problem may not have been fixed but I am really impressed with Tek-Tips forum. Some one continuously try to help me Wow!!! Thank you for all your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top