Category Archives: Office 365

Office 365 is secure, anywhere access to email and calendars, Office Web Apps, web conferencing, and file sharing.

Office 365 Adding Distribution Group Owner | Powershell

Some migrations of¬†Microsoft Business Productivity Online Services (BPOS) to Office 365 would result in the owner of “Distribution Groups” being blank with no access to update this even by the 365 administrator:

Here’s the Powershell to resolve this:

"Microsoft Online Services Module for Windows PowerShell"
Set-ExecutionPolicy unrestricted
$cred = Get-Credential
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri <a href="https://ps.outlook.com/powershell">https://ps.outlook.com/powershell</a> -Credential $cred -Authentication Basic -AllowRedirection
$importresults = Import-PSSession $session
Set-DistributionGroup -Identity "DG_Name_or_Alias" -ManagedBy &lt;<a href="mailto:user@domain.com">user@domain.com</a>&gt;-BypassSecurityGroupManagerCheck

Note: you do not need the > and < symbols and the alias does not need to include the domain name. If you do not receive an error in red text then the process is complete. There is no visual confirmation message once complete.

Office 365 | Powershell

With the migration of many BPOS accounts to Office 365 there have been some major changes to the back-end resulting in a different method connecting via powershell in order to use command line syntax.

To use the powershell command line syntax for Office 365 you first need to initiate a connection to the 365 servers:

Getting a little confused with the tools and software for Office 365?

I try and clarify:

“Microsoft Online Services Sign-In Assistant” – Designed to provide users with a seamless method to access the different services (Exchange, SharePoint, Lync), without this utility users would be forced to sign into each service individually. (msoidcrl.msi)

Note: If you don’t have the above program installed, then the “Microsoft Online Service Module” will not install. It will display the following error:

“Microsoft Online Services Module” – basically a module for powershell 2.0 allowing the Office 365 commands to be run (AdministrationConfig_en.msi) – this software creates a desktop shortcut which you can access powershell.

When you login to the Office 365 portal the end user can run the automated setup tool. Unfortunately this can’t be downloaded and deployed. The software must be run from the portal location.

Powershell using “Microsoft Online Services Module for Windows PowerShell”

You may experience the following error when running Powershell Commands:

“File cannot be loaded because the execution of scripts is disabled on this system”

You can run this command to remove the execution restriction.

Set-ExecutionPolicy Unrestricted

Continue reading