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

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

  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 的请求。

转载于:https://blog.51cto.com/6293080/2315617

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值