Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

GPO by PC Name

Posted on 2014-03-19
2
597 Views
Last Modified: 2014-03-20
Hey all,

I would like to know if there is a way to apply Group Policy Objects by computer name?

We have an OU with computers with autologins set up and some of theme need access to some mapped drives. I would like to have a GPO which check the computer names of the computers within an OU and when a string is found in the name it then applies the GPO?

For instance, if my naming scheme is DT-ROLE-01 and I want to apply the GPO to all computers where the 'ROLE' portion of the name is something like KIOSK or PUBLIC, is there any way to do that?

Thanks for any help!
0
Comment
Question by:PDGPA
2 Comments
 
LVL 19

Accepted Solution

by:
helpfinder earned 250 total points
ID: 39940845
is it possible that you create new OU whitin your actual OU and put all mentioned (KIOSK/PUBLIC) computers here? If so then you can apply/Link GPO to that OU and you are done

For apply only for computers based on hostname you can try GPO and WMI filder used in that GPO. WMI could looks like:
Select * from Win32_ComputerSystem where Name LIKE “%hosname%”

Open in new window

0
 
LVL 10

Assisted Solution

by:Schuyler Dorsey
Schuyler Dorsey earned 250 total points
ID: 39940925
Alternatively, you could also apply the GPO at the parent container then change the scoping of the GPO to list the computer names of the computers you want it to apply to.

To make it one step easier, you could create an A.D. group and put those computers into that a.d. group. Then put that A.D. group in the scoping option of the GPO.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
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…

829 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