Exchange/Office365 automatic processing script: environmental preparation (1)
I. Server Requirements
Operating System: Windows Server 2008/2012 R2
Network requirements:
Join Domain Allow access to office365 related URLs Open to Exchange/Skype ports 443, 5985, 5986
Software requirements: Install Office 2016, Active Directory Remote Management Module Microsoft. NET Framework 3.5 and above
Install Office365 Remote Administration Assistant and Modules
How to connect to Office 365 PowerShell
Powershell version 5.0 and above, use $PSVersionTable.PSVersion to check version.
Powershell 5.0 Installation Package Download Links
PS C:\Users\yanhaiyan> $PSVersionTable.PSVersionMajor Minor Build Revision----- ----- ----- --------5 1 14409 1005
Powershell settings:
PS C:\Users\yanhaiyan> Set-ExecutionPolicy RemoteSignedExecution Policy ChangeThe execution policy helps protect you from scripts that you do not trust. Changing the execution policy might exposeyou to the security risks described in the about_Execution_Policies help topic athttp://go.microsoft.com/fwlink/? LinkID=135170. Do you want to change the execution policy? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): y
2. Enable PSRemoting
PS C:\Users\yanhaiyan> Enable-PSRemoting -Force WinRM is set up on this computer to receive requests. WinWinRM has been updated for remote administration. Create a WinRM listener on HTTP://* to accept WS-Man requests for any IP on this machine.