Solved

Group Polcy - Applying what where

Posted on 2007-03-20
5
179 Views
Last Modified: 2010-04-20
Would I be right in assuming
I can only apply the 'Computer Configuration' Settings to OU's containing computer objects.
AND
I can only apply the 'User Configuration' Settings to OU's containing users.

I am applying a GPO to an OU containing computers and trying to invoke a user logon script from the GPO Tree > User Configuration > Windows Settings > Script > Logon. This doesn't seem to work for me but I don't know whether I am looking at a fault or a feature.

Cheers
Jo
0
Comment
Question by:jrb139
5 Comments
 
LVL 6

Expert Comment

by:trippleO7
Comment Utility
Yes, Computer configuration will only apply to Computers in an OU, same goes for users and User Configuration.  Applying User Configuration settings for an OU with only computers won't work.

It all depends on what type of script you are running, but try using a Startup script for those machines...

Computer config > Windows Settings > Scripts (startup/shutdown)

What type of script is it?


0
 

Author Comment

by:jrb139
Comment Utility
I guess I would like to run a script on an OU of computers that would only affect a subset of users.

But I get the impression the script applied to a Computer runs prior to a user logon which kind of scuppers my plan.

So I have kind of turned it on its head, so now I am applying the script to that group of users and testing to see if the Computer is in a certain OU, if so then apply the action.

Seems like the best way forward.
0
 
LVL 21

Expert Comment

by:mcsween
Comment Utility
Yes, you are correct, a computer configuration Startup script runs as Administrator at comptuer startup (before you see a logon screen).  A user Logon script runs at logon (after you type your password).

Make sure wherever you are storing the script has the proper security set so the users have at least read on the share and NTFS permissions.  Also check to make sure the users can access this location, if not it could be a DNS issue or something.

Assign the GPO to an OU with the user's in it and make sure Authenticated Users have read and apply set on the GPO.  Alternatly you can link the GPO in the root of the domain and use security groups to filter.  Remove the Authenticated Users permission from the GPO and add the security group you want ot use to apply these settings.

Go to a user's computer that should get this GPO and while logged on as the user:
Start --> Run --> rsop.msc
Check to see the policy is being applied.  You can RC User Config and select properties to see error information.  Also check the event logs to see if there was some error in group policy processing.
0
 
LVL 21

Expert Comment

by:mcsween
Comment Utility
Just to be clear, you want the script to apply to only certian users on specific computers?

For example:
User1 logs onto Computer1 = Apply Policy
User1 logs onto Computer2 = Do not Apply Policy
User2 logs onto Computer1 = Do not Apply Policy

If you are using VBScript here is a nice quick query to find the full LDAP name of the computer (will show OU info too)

Set ADInfo = CreateObject("ADSystemInfo")
wscript.echo ADInfo.ComputerName

This is just an echo but you can set it to a variable and do what you want with it.
0
 
LVL 12

Accepted Solution

by:
StuFox100 earned 250 total points
Comment Utility
If you want to use GPO without the extra scripting use loopback policy - http://support.microsoft.com/kb/231287
Using the merge option the OU where the machines are will apply the 'User Configuration' options when a user logs on.
Cheers
Stu
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Mapping Drives using Group policy preferences Are you still using old scripts to map your network drives if so this article will show you how to get away for old scripts and move toward Group Policy Preference for mapping them. First things f…
Introduction You may have a need to setup a group of users to allow local administrative access on workstations.  In a domain environment this can easily be achieved with Restricted Groups and Group Policies. This article will demonstrate how to…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

763 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

9 Experts available now in Live!

Get 1:1 Help Now