Export (0) Print
Expand All

Import-Module error in Lync 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 Lync 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 http://go.microsoft.com/fwlink/?LinkID=135170.

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 http://go.microsoft.com/fwlink/?LinkID=135170.

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft