Hello @MCcorpNow
I can understand that you need to Add user to some AD Groups after they have been created. In case some one forgot to add.
You can achieve this using two approaches.
Method 1 :
You can use below PowerShell which will get List off AD groups created before 1 or 2 days. and If found add them to groups.
You can put this script in Task scheduler to run every day to be run Automatically.
$DateCutOff=(Get-Date).AddDays(-1)
#^ This will take today’s date and effectively add -1 days to it.
Get-ADUser -Filter {whenCreated -gt $datecutoff} |Foreach{Add-ADGroupMember -Identity "GroupNAME" -Member $_}
Method 2:
Create a default user template empty AD account with necessary group in the members tab .
You copy this when creating a new user it should work.
To copy an Active Directory domain user account, open the Active Directory Users and Computers MMC snap-in, right click the user object and select “Copy” from the context menu.
Hope this answers your query :)
----------------------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--