成都网站建设设计

将想法与焦点和您一起共享

Exchange/Office365自动处理脚本:环境准备篇(一)

一、服务器要求
操作系统:Windows Server 2008/2012 R2
网络要求:

平度网站建设公司成都创新互联,平度网站设计制作,有大型网站制作公司丰富经验。已为平度近1000家提供企业网站建设服务。企业网站搭建\成都外贸网站制作要多少钱,请找那个售后服务好的平度做网站的公司定做!

  1. 加入域
  2. 允许访问office365相关网址
  3. 开通到Exchange/Skype 的端口443,5985,5986
    软件要求:
  4. 安装Office2016,Active Directory远程管理模块
  5. Microsoft.NET Framework 3.5及以上
  6. 安装Office365远程管理助手和模块

    如何连接到 Office 365 PowerShell

  7. Powershell版本要求5.0及以上,使用$PSVersionTable.PSVersion可检查版本。

Powershell 5.0安装包下载链接

PS C:\Users\yanhaiyan> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      14409  1005

Powershell设定:

  1. 设置执行脚本策略
PS C:\Users\yanhaiyan> Set-ExecutionPolicy RemoteSigned

Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
http://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.启用PSRemoting

PS C:\Users\yanhaiyan> Enable-PSRemoting -Force
在此计算机上设置了 WinRM 以接收请求。
WinRM 已经进行了更新,以用于远程管理。
在 HTTP://* 上创建 WinRM 侦听程序接受 WS-Man 对此机器上任意 IP 的请求。

当前题目:Exchange/Office365自动处理脚本:环境准备篇(一)
网站URL:http://chengdu.cdxwcx.cn/article/psdijs.html