I have been using powershell to create AD Users and Mailboxes, similar to below:
New-MailUser -Name Bob -FirstName Bob -LastName Smith -ExternalEmailAddress
email@example.com -UserPrincipalName firstname.lastname@example.org
Am I able to take it one step further and add to multiple security groups / distribution lists as well? If so, could you provide a quick example?