Hecxer
Hecxer

Reputation: 13

Add / remove user from AD group automatically

I have some softwares integrated with AD group, so I usually need to maintain the members of c AD groups. Almost theses operations are temporary, maybe 24hr or 1 month,etc.

Can I use powershell or vb script or other programs to make these routine done by program?

Any ideas would be appreciated.

Upvotes: 0

Views: 1439

Answers (1)

TobyU
TobyU

Reputation: 3928

Yes, you can use PowerShell (or VB).

Add users to an AD Group with PowerShell using Add-ADGroupMember and remove them using Remove-ADGroupMember.

I would create a Scheduled Task running your script every hour or so.

Upvotes: 1

Related Questions