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
Resource\SRM
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
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.