Thursday 23 June 2016

Step by step Exporting DLs from Office365 Server.

Or, How to export all DLs from Office365 server?
Or, Export Distribution List Office365 Server.

Steps:
1. Open Windows PowerShell (Run as Administrator)
2. Run below command sequentially (one by one).
----------------------------------------------------------------------------------------------------------------------------
 Set-ExecutionPolicy RemoteSigned
-----------------------------------------------------------------------------------------------------------------
 $LiveCred = Get-Credential
-----------------------------------------------------------------------------------------------------------------
 Note:  (in the pop out window, please enter Office365 global admin)  
-----------------------------------------------------------------------------------------------------------------
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri  https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic –AllowRedirection
-----------------------------------------------------------------------------------------------------------------
Import-PSSession $Session
 ----------------------------------------------------------------------------------------------------------------

(All above mentioned commands are highlighted in below screenshot sequentially)











3. Now run the below highlighted script to get the list of all DLs from your office365 server. You can    copy this script from my article 









4. Go to your D drive and search for the below file, here is the list of your all DLs.

2 comments: