I have been using powershell to create AD Users and Mailboxes, similar to below:
New-MailUser -Name Bob -FirstName Bob -LastName Smith -ExternalEmailAddress
firstname.lastname@example.org -UserPrincipalName email@example.com
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?