Go to portal.microsoftonline.com from any web browser and log in as some user which has admin privileges within your organization:
Once you are logged in, from the menu on the left-hand side, expand Admin centers and select Exchange
Click on recipients and then on groups.
Click on the + sign and select Security group.
Enter:
Display name e.g. Access To Finance
Alias: e.g. accesstofinance
Email address: e.g. accesstofinance (this will automatically copy the alias but it can be changed)
Scroll down untill Members part is shown
Click on + and add desired members and click OK until all the windows are closed
Newly created group should now appear on the list
PowerShell
Open PowerShell on your local computer and type in these commands to connect to Office 365 and enter your admin credentials when prompted:
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
To create a Securty mail enabled group, run the following command:
New-DistributionGroup -Name "Security Group 4" -Alias securitygroup4 -Type security
In order to add members to to this group, run:
Add-DistributionGroupMember -Identity securitygroup4 -member username@domain.com
This must be done for each member which needs to be added or some form or CSV input must be used.
CMP Internal (Migrated deleted Agent)
Comments