Convert Unified Groups to Distribution Lists [Data Loss Warning!]

 Convert Office 365 Groups to Distribution Lists[Data Loss Warning!]I recently got a lot of requests for converting Unified Groups (New Office365 Groups) back to Distribution lists. Currently there is an option in the Exchange Admin Center to convert Distribution lists to New Off

5 Star
2,088 times
Add to favorites
Office 365
E-mail Twitter Digg Facebook
  • Dude thank you for sharing this!
    1 Posts | Last post November 01, 2019
    • Kicked ass and worked like a charm. Def add the notes from SuperDave1685 to the Description :) 
  • Implement These Improvements?
    3 Posts | Last post April 18, 2019
    • Hi there.  Your script is assuming you have several O365/Azure AD modules installed.  I think it would be helpful if you included this at the beginning of your script:
      Set-ExecutionPolicy Unrestricted
      Install-Module -Name AzureADPreview
      Install-Module -Name MSOnline
      Start-service winrm
      Import-module MSOnline
      $UserCredential = Get-Credential
      $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $UserCredential -Authentication Basic -AllowRedirection
      Import-PSSession $Session
      Connect-MsolService -Credential $UserCredential
      This will allow anyone to virtually use this with little trouble (point, click, and run) 
    • Thanks for the Feedback Dave.
      I will implement these in all my scripts going forward. I will probably get his completed by the end of this week as I am traveling now. 
    • Hi Dave. 
      The addition of connection commands creates more issues than not adding it. There are many users behind proxies and a lot more than use MFA. The script throws many errors for these users. I is best if users connect/initialize using their own method, and then execute the script. 
      Thanks again for your inputs.