启用 Windows PowerShell Remoting 用于远程管理和远程安装

从单个 IBM Spectrum Protect™ Snapshot 安装即可管理组织中的所有 IBM Spectrum Protect Snapshot 安装,并将 VSS 快照安装到远程服务器。

开始之前

要使用远程管理和远程安装功能,必须在要管理的所有 IBM Spectrum Protect Snapshot 安装上安装并启用 Windows PowerShell 3.0 或更高版本。 要下载、安装和启用软件,请遵循位于以下地址的指示信息:Microsoft Windows Management Framework 3.0 下载

过程

  1. 通过输入以下 Windows PowerShell 命令为 IBM Spectrum Protect Snapshot 安装或“远程安装”功能启用远程管理。
    Enable-PSRemoting -force
    1. 通过在每个远程系统上输入以下命令将 IBM Spectrum Protect Snapshot 服务器添加到可信主机列表:
      Set-Item WSMan:\locahost\Client\TrustedHosts -Value
      remote_server_name,local_host_name -Force

      其中 remote_server_name 用于指定远程服务器。

    2. 通过输入以下命令重新启动 winrm 服务:
      Restart-Service winrm
  2. 可选: 如果使用 IBM Spectrum Protect Snapshot for Microsoft Exchange Server 软件,请启用含凭证安全性支持提供程序 (CredSSP) 认证的 Windows PowerShell Remoting 功能。 请完成以下步骤:
    1. 在主系统上,输入以下命令以启用含 CredSSP 的 Windows PowerShell Remoting 功能:
      enable-wsmancredssp -role client -delegatecomputer remote_computer_name 

      其中 remote_computer_name 指定远程计算机。

    2. 在运行 IBM Spectrum Protect Snapshot for Microsoft Exchange Server 软件的每个远程系统上,输入以下命令以启用含 CredSSP 的 Windows PowerShell Remoting 功能:
      enable-wsmancredssp -role server
  3. 通过使用以下其中一种方法来验证是否已配置 Windows PowerShell Remoting 功能:
    • 使用“Test-WSMan”cmdlet 来测试远程计算机上是否正在运行 WinRM 服务。

      A. 在服务器 A 上,输入以下 cmdlet 以验证是否已正确配置 Windows PowerShell Remoting 功能:

      Test-WSMan remote_server_name

      其中 remote_server_name 用于指定远程服务器。

      B. 在服务器 B 上,输入以下 cmdlet 以验证是否已正确配置 Windows PowerShell Remoting 功能:

      Test-WSMan remote_server_name

      其中 remote_server_name 用于指定远程服务器。

      限制: 对于远程安装功能,必须使用 /RemoteComputer CLI 选项中所使用的计算机名称。
    • 要验证是否已配置 Windows PowerShell Remoting 功能,请输入以下 cmdlets:

      A. 在服务器 A 和服务器 B 上未启用凭证安全性支持提供程序 (CredSSP) 认证时,请输入以下 cmdlet:

      invoke-command -computername remote_server_name
      -scriptblock {pwd} -Credential $creds

      其中 -computername 用于指定远程计算机名称,remote_server_name 用于指定远程服务器。

      B. 在服务器 A 和服务器 B 上已启用凭证安全性支持提供程序 (CredSSP) 认证时,请输入以下 cmdlet:

      invoke-command -computername remote_server_name 
       -scriptblock
      {pwd} -Credential $creds -Authentication Credssp

      其中 -computername 用于指定远程计算机名称,remote_server_name 用于指定远程服务器。

      限制: 对于远程安装功能,必须使用 /RemoteComputer CLI 选项中所使用的计算机名称。 此外,针对远程安装功能使用 CLI 命令时,使用 /RemoteComputerUser/RemoteComputerPassword CLI 选项所使用的用户名和密码。
    • 单击 Microsoft 管理控制台 (MMC) > IBM Spectrum Protect Snapshot。要验证与远程计算机的测试连接,请在“操作”窗格中单击管理计算机。 单击测试连接
  4. 添加远程系统。 单击 Microsoft 管理控制台 (MMC) > IBM Spectrum Protect Snapshot。要将计算机添加到选定的“树节点”,请在“操作”面板中,单击管理计算机。 单击加号图标。