Encrypting the recovery site vCenter Server password

This is an optional task.

You must perform this task only if you plan to encrypt the recovery site vCenter Server user account password (that is; if you do not want to specify the vCenter Server user account password in the command step that must be added to the SRM Recovery Plan for application monitoring continuity).

Alternatively, you can avoid providing the password in the command step by configuring the VMware vCenter Site Recovery Manager Server service (only if the SRM Server and the vCenter Server are in the same domain).

The EncryptvCenterPassword.ps1 script stores the vCenter Server user account credentials at a specified or the default location. These details are then used by the command step that you add to update the recovery plan.

To encrypt the vCenter Server user account password

  1. From the product software disc navigate to the following path and copy the EncryptvCenterPassword.ps1 script to a temporary location on the SRM Server at the recovery site.

    Resource\SRM

  2. From the command prompt run the following command:

    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Unrestricted c:\encryptVCenterPasswd.ps1 [- CredPath]

    Where,

    CredPath is the path where you want to save the vCenter Server user account credentials. For example, c:\users\administrator\VCenterUserInfo.xml

    Note:

    Ensure that the path is specified in ' ' (single quotes) and that it does not contain the character '&' in it.

    The encryptVCenterPasswd.ps1 script fails to save the vCenter Server user account details at a specified path, if the path is specified in " " (double quotes) and contains a space. Also, if the path contains a character '&' in it the script displays an error indicating that the specified path does not exists.

    If you do not specify the FileName, then the user account credentials are saved at the following location by default:

    C:\ProgramData\Veritas\VCenterUserInfo.xml is used.

    After you run the command, a dialogue box to specify the vCenter Server user account details is displayed.