CN=Configuration -> CN=Service -> CN=Microsoft Exchange -> CN=Domain Name -> CN=Administrative Group -> CN=Servers -> CN=Server name -> CN=Protocols -> CN=SMTP Receive Connectors
run PS as an admin
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Get-DistributionGroupMember -Identity groupname
- hybrid configuration (MS Ex 2010 and Exchange 365), Windows Azure AD Sync tool
- user created in AD on-premises, license assigned and mailbox automatically created in Office 365
- user's primary SMTP e-mail address is firstname.lastname@example.org, and you can't change it to email@example.com because it needs to be done in AD on-premises
Windows PowerShell Copyright (C) 2012 Microsoft Corporation. All rights reserved.
PS C:\Users\administrator.***> Import-Module dirsync
MS Echange 2010
Logon screen is fine but when you enter your credentials you receive the message:
Detailed info says that your pahe has been moved or it is no longer available.
Login to the server where Exchange is installed, open services and check the status of the "Microsoft Exchange Forms Based Authentication service" status, restart it, start it if it is not on. If the service is not started Outlook Web App will not authenticate users.
Mail Universal Distribution Group
[PS] C:\windows\system32>Get-DistributionGroupMember -Identity "group-name" | sort -Property DisplayName | select DisplayName, primarysmtpaddress | Export-Csv C:\Users\"user_profile"\Desktop\"something".csv
Listing members of dynamic distribution group and therir e-mail addresses
$variable-name = Get-DynamicDistributionGroup "dynamic.distr.group.name"