Hi I've got a script which creates new office365 users/mailboxes from csv using the new-msoluser commandlet. I was wondering if it were possible to include the add-distributiongroupmember command into the routine for creating new-msolusers ? So basically complete the account creation for 'John Doe' and then pipe that user into the same foreach routing into the chosen distribution group ?
↧