I have a VM where I’m practicing Powershell. I have been able to successfully create new active directory users and also templates.
However when it comes to creating an AD User based of a template via powershell , I’m not able to accomplish that. Will someone please assist or point me in the right direction.
For example, this is what I tried doing.
I have created a Template called IT Template, and that IT template is part of different groups(Members of tab)
When I create new users, I want it to use the properties of the IT Template so I don’t have to add all of the groups manually.
I know I can add it Manually, like this.
add-adgroupmember -Identity “Office” -members “test user”
This will add the Office group to the user called test user.
However I want to attach this to the template level.
Can you provide me with a basic example so I can start understanding this.