make computer member of specific domain group after joining domain

Jaber MM
Jaber MM used Ask the Experts™
on
hi all ,

is there any way to make any computer who is recently joined the domain member of specific group  without even move to be member of it ?

regards
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
What is your use-case?

Author

Commented:
we are trying to add new machine to domain and Once the PC’s join the domain it should be part of user predefined group but it is not happening for the new machines being joined the domain .( i.e. not inherited  )
Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
I get that, what will the group do?
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Technical Specialist
Awarded 2017
Distinguished Expert 2018
Commented:
Use redircmp to redirect default computer CN to a new/different OU

Schedule this PowerShell to run against this new/different OU and add a move afterwards
Import-Module ActiveDirectory;
$Group = "Some Group 1";
$OU = "OU=Workstations,OU=Computers,OU=Dunder Mifflin,DC=dundermifflin,DC=com";
Get-ADComputer -SearchBase $OU -Filter * | % {Add-ADGroupMember $Group -Members $_.DistinguishedName }

Open in new window

Do you want a Domain Computer to be part of any particular Group after it joins the Domain. If my understanding is correct then you can do the same using Group Policies.

If my assumption is not correct then request you to elaborate your question.

Author

Commented:
@Rakesh Kapoor

yes i need Domain Computer to be part of particular Group after it joins the Domain. how this can be done using group policy ?

thanks
Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
Will all computers eventually be part of this group?
Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
Glad we could help.

@OP, experts and future visitors:
Please remember to endorse my, or any other expert's comments that you found helpful by clicking on the "Thumb's Up" button

Read more on endorsements
https://www.experts-exchange.com/discussions/218503/What-are-Endorsements.html

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial