Solved

How to move system in AD to another group with GPO

Posted on 2016-09-23
2
43 Views
Last Modified: 2016-10-03
I have systems that I need to have move to a group when they join the domain based on the system name format.  

so if a systems name begins with pc- I need to be able to have them automatically moved to a group when they are added to the domain.

thanks
0
Comment
Question by:rdefino
2 Comments
 
LVL 14

Expert Comment

by:Schnell Solutions
ID: 41812581
The most that AD can do natively is to put all new systems in a specified OU. By default it is the 'Computer' container, and you can change it to something else. However, you want to modify the group membership according to the system name used to join the computer.

One way to achieve it is to create a manual script that reads the computers that are located in the OU/Container of new PCs and then this scripts read the names there and according to the name it changes the system membership and move the computer somewhere else (it will avoid further processing of the same system). Then you can configure that script to run on a regular basis.
0
 
LVL 5

Accepted Solution

by:
sAMAccountName earned 500 total points
ID: 41812623
If you are grouping clients based on what role they play (i.e. workstation vs server), Its more reliable to use the "OperatingSystemVersion" property on the object:
PS C:\> (get-adcomputer servername -Properties OperatingSystemVersion).OperatingSystemVersion
6.3 (9600)

Open in new window


I wouldnt rely on a naming convention.  As stated above, the way to solve this is through a task/job which queries the default computers container or some other target (i.e. domain root) for computers which arent in your wanted groups and add them to the right one based on OS version.

Ive done almost identical work at a few different places to good effect.
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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

707 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

14 Experts available now in Live!

Get 1:1 Help Now