Import-Module error in Skype for Business Online caused by Windows PowerShell execution policy

Lync Server 2013

Topic Last Modified: 2013-07-05

The Windows PowerShell execution policy helps to determine which configuration files can be loaded into the Windows PowerShell console, and which scripts a user can run from that console. At a minimum, the Skype for Business Online Connector module cannot be imported unless the execution policy has been set to RemoteSigned. If it has not, then you will receive the following error message when you attempt to import the module:

Import-Module : File C:\Program Files\Common Files\Microsoft Lync Server 2013\Modules\LyncOnlineConnector\LyncOnlineConnectorStartup.psm1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at

To resolve this issue, start Windows PowerShell as an administrator, and then run the following command:

Set-ExecutionPolicy RemoteSigned

For details about execution policy, see the Help topic at