安装 Windows Management Framework
**适用于:**Exchange Server 2010
**上一次修改主题:**2009-10-14
Windows Management Framework 包含 Windows PowerShell 2.0 和 Windows 远程管理 (WinRM) 2.0,是使您能够使用 EMC 和命令行管理程序的必需组件。您可以在运行 Windows Vista、Windows Server 2008、Windows Server 2003 或 Windows XP 的计算机上安装 Windows Management Framework。
不必在运行 Windows 7 或 Windows Server 2008 R2 的计算机上执行此步骤。Windows Management Framework 已在这些操作系统上安装。
若要了解与 Windows Management Framework 相关的其他管理任务,请查看管理 Exchange 命令行管理程序连接。
备注
如果要在已安装 Microsoft Exchange Server 2010 的计算机上运行 EMC 或远程命令行管理程序,则不必执行此步骤。有关如何打开安装了 Exchange 管理工具的 EMC 或命令行管理程序的详细信息,请参阅以下主题:
Exchange 管理控制台
打开命令行管理程序
先决条件
- 在安装 Windows Management Framework 之前,必须从正在使用的计算机上卸载所有以前版本的 Windows PowerShell 和 WinRM。有关如何卸载 Windows PowerShell 和 WinRM 的说明,请参阅卸载以前版本的 Windows PowerShell 和 Windows 远程管理。
- 若要安装 Windows Management Framework,必须运行以下操作系统之一:
- Windows Vista Service Pack 1 (SP1)
- Windows Vista SP2
- Windows Server 2008 SP1
- Windows Server 2008 SP2
- Windows Server 2003 SP2
- Windows XP SP3
安装 Windows Management Framework
需要首先分配权限,然后才能执行此过程。若要查看所需的权限,请参阅 Exchange 和命令行管理程序基础结构权限主题中的“PowerShell 和 WinRM 安装”条目。
将 Windows Management Framework 从 Windows Management Framework 下载到本地计算机。选择包括 Windows PowerShell 和 WinRM 组件并适用于您的操作系统、系统体系结构和语言的版本。
备注
在安装 Windows Management Framework 之前,请验证计算机是否符合软件包下载页上列出的所有要求。有关详细信息,请参阅 Windows Management Framework 下载网站上提供的安装说明。
安装 Windows Management Framework。按照向导来安装 Windows PowerShell 和 WinRM 组件。
通过执行以下操作,将 Windows PowerShell 脚本执行策略设置为允许运行所创建的未签名脚本和从 Internet 获得的签名脚本:
单击“开始”,依次指向“所有程序”、“附件”和“Windows PowerShell”,然后单击“Windows PowerShell”。
如果正在运行 Windows Vista、Windows 7 或 Windows Server 2008 R2,并且已启用用户帐户控制 (UAC),则右键单击“Windows PowerShell”,然后选择“以管理员身份运行”。
如果收到一条提示,指示 Windows 需要您的权限才能继续,则单击“继续”。备注
只有在这时才需要以管理员身份运行 Windows PowerShell。使用 Windows PowerShell 连接到 Exchange 2010 服务器时,不必选择“以管理员身份运行”。
在 Windows PowerShell 中,键入 Set-ExecutionPolicy RemoteSigned,然后按 Enter 键。
关闭 Windows PowerShell。
其他任务
安装 Windows Management Framework 之后,可能要连接到远程 Exchange 2010 服务器。有关详细信息,请参阅将远程 Exchange 命令行管理程序连接到 Exchange Server。
如果要使用 EMC,请参阅 Exchange 管理控制台。