The following error may be seen in the Office 365 module log file:

2015-07-08 16:37:34Z|4936|115| INFO| SetLegalHold|Executing SetLegalHolds command  2015-07-08 16:37:34Z|4936|115| INFO| ExecuteInternal|Setting litigation hold for []  2015-07-08 16:37:34Z|4936|115| INFO| SetLegalHold|Adding LitigationHold command for Mailbox []  2015-07-08
 16:37:55Z|4936| 14|ERROR| Execute|Unable to process command
Office365SetLegalHold: System.ApplicationException: Error: Files cannot
be loaded because the running of scripts is disabled on this system.
Please provide a valid certificate with which to sign the files. at ArchiveShuttle.Module.Office365.Office365PsBase.GetPowerShell(Runspace runspace, PSCredential credentials) at
 userPrincipalName, Office365LegalHoldType legalHoldType, String
inPlaceHoldIdentity, PowerShell powerShell) at ArchiveShuttle.Module.Office365.Office365LegalHoldSetter.ExecuteInternal(ModuleCommand command) at ArchiveShuttle.Module.Office365.Office365PsBase.Execute(ModuleCommand command)

The issue relates to the default execution policy for PowerShell scripts. In Windows 2008 R2 the policy is ‘restricted’, in Windows 2012 R2, the policy is ‘remote signed’.  The error message above may be logged if the policy is configured as ‘restricted’.
It is recommended to issue the Set-ExecutionPolicy applet and enable RemoteSigned.
The attempt to set Legal Hold will be retried each hour until it succeeds. Until it is successful, no data will import into the target mailbox (or Personal Archive)
Note: Confer with Microsoft to determine whether the terms of your licensing agreement are impacted by the legal hold feature.

Print Friendly, PDF & Email