Call : 381-18-529-373

Create Dynamic Distribution Group on Live@Edu

In order to create Dynamic distribution group on Live@Edu R5 You’ll have to login to service via Powershell first. Click on your start button and start typing PowerShell . When it shows up in the list, press Enter.

Type:

[sourcecode language=”powershell”] $LiveCred = Get-Credential [/sourcecode]

Enter Your Live@Edu admin credentials
[sourcecode language=”powershell”]$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session[/sourcecode]

In order to create Your Dynamic Distribution group use this command:

[sourcecode language=”powershell”]New-DynamicDistributionGroup -Name “” -RecipientFilter “(RecipientType -eq ‘UserMailbox’) -and (WindowsLiveID -like ‘*@‘)”[/sourcecode]

In order to check if all users are there , use this query :

[sourcecode language=”powershell”]$ddg = Get-DynamicDistributionGroup -Identity “
Get-Recipient -RecipientPreviewFilter $ddg.RecipientFilter -OrganizationalUnit $ddg.RecipientContainer | Select Name, PrimarySMTPAddress[/sourcecode]