Solved

Group Policy WMI Filter for User Field Value

Posted on 2011-02-14
4
1,177 Views
Last Modified: 2012-05-11
I need to filter a Group Policy that denies local logon to a specific group of users because there are certain users that must be in that group which I do not want the policy to be enforced upon.  The one variable that differentiates between the users is the "Company" field under the "Organization" tab in the A.D. profiles.  The ones that I want the policy to be enforced upon MUST have "Student" in that field.  Anything else results in the policy being ignored.  I know how to pull that field through a full-blown script, but WMI Filters can't be a full script.  They have to be a direct output of a WMI Class's values.  Please help.  Thank you in advance.
0
Comment
Question by:Infinetwork
  • 2
  • 2
4 Comments
 
LVL 3

Expert Comment

by:laughelemental
ID: 34889714
Hello

You do not need any WMI filterto do that. It's achieved via Group Policy security settings/ Make desired permissions to apply that GP only to specific user (or computer) group
see http://www.windowsnetworking.com/articles_tutorials/Group-Policy-Security-Filtering.html
0
 

Author Comment

by:Infinetwork
ID: 34889810
There are too many users to add them individually, since you can't add the ones NOT to apply the policy to (you can only list who you DO want it applied to). And, as I said, there are users in the group that I don't want the policy applied to (so, I can't apply it to the group). Also, just so you know, this is an auto-generated group, so making a new group through the system that created this group would not be an option as I would run into the same problem at some point all over again. One more thing: manually moving around users/groups is not an option as the groups would be in constant change and it would be too much overhead. That's why it needs to be a WMI filter - so that it only let's the policy work when certain criteria is met.
0
 
LVL 3

Accepted Solution

by:
laughelemental earned 500 total points
ID: 34889988
since you can't add the ones NOT to apply the policy to (you can only list who you DO want it applied to)

you CAN do that by setting DENY flag in security.
0
 

Author Closing Comment

by:Infinetwork
ID: 34890120
Thanks.  Sometimes I forget the obvious and basic answers.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
This article runs through the process of deploying a single EXE application selectively to a group of user.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

777 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