пятница, 9 августа 2013 г.

Как подключить PowerShell к Exchange Online (Office365)

 

Шаг 1

http://help.outlook.com/en-us/140/cc952756.aspx

Шаг 2

http://help.outlook.com/en-us/140/cc952755.aspx

если команда

Import-PSSession $Session


выдает ошибки то делаем так



http://rhoranburg.wordpress.com/2012/08/15/windows-powershell-for-office-365-error-cannot-be-loaded-because-the-execution-of-scripts-is-disabled-on-this-system/



When running the command “Import-PSSession $Session” it would return the error message below.




…cannot be loaded because the execution of scripts is disabled on this system. Please see “get-help about_signing” for more details. then follow these steps to resolve it.




To resolve this, first check the current policy and then change it to unrestricted.



1. Check policy with the command:




Get-ExecutionPolicy




2. If it returns “Restricted”, then change it to unrestricted with the command




Set-Executionpolicy -ExecutionPolicy Unrestricted




3. Boom, works now.