How to run Backup/Restore or install a patch under another user

 
0 Likes

This method is applicable for SV Server 5.4 or lower.

To successfully run Backup and Restore, or to install an SV Server patch, you need to be logged in under the account that originally installed SV, or the account that runs the SV Server as a Windows service (run 'services.msc' to see which user runs the 'Service Virtualization Server' service).
To carry out these actions under a different account, you need to copy the original encryption password to this account's Windows Credential Store.

Explanation:

SV encrypts all passwords using a special autogenerated GUID, stored in the Windows Credential Store of the account that installed the SV Server, as well as of the account that runs the SV Server. To install a patch or run the Backup/Restore Utility, you need to run it under one of these 2 accounts.

Steps to obtain the encryption password:

To obtain the password from other than the Local System account follow these steps:

  1. Login under the account that originally installed the SV Server, or runs the SV server.
  2. Download the GetPasswordForSV.exe utility from the FTP: ftp://getpass2:%2AIC6br%3DRR4qy%2AHY@ftp-pro.houston.softwaregrp.com/GetPasswordForSV-20210310.zip
  3. Open Command Line (cmd.exe) and run the GetPasswordForSV.exe utility to obtain the password. You should get a similar output to this:
    Password for Service.Virtualization:StandaloneServerXmlEncryption@SV_internal = 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'
  4. Note down the obtained encryption password (it has a form of GUID).

To obtain the password from the Local System account follow these steps:

  1. Download the PsExec tool from SysInternals https://docs.microsoft.com/en-us/sysinternals/downloads/psexec
    This tool will make it possible for you to run a script under the Local System account.
  2. Run cmd.exe as Administrator. Inside it call: psexec -i -s cmd.exe
    Another command-line window will open, this time running in the Local System user context.
  3. Download the GetPasswordForSV.exe utility from the FTP: ftp://getpass2:%2AIC6br%3DRR4qy%2AHY@ftp-pro.houston.softwaregrp.com/GetPasswordForSV-20210310.zip
  4. Inside the command line window that runs under the Local System run the GetPasswordForSV.exe utility to obtain the password. You should get a similar output to this:
    Password for Service.Virtualization:StandaloneServerXmlEncryption@SV_internal = 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'
  5. Note down the obtained encryption password (it has a form of GUID).

Steps to copy the encryption password to another user's Windows Credential Store:

  1. Login under the account to which Credential Store you want to copy the encryption password (the motivation is to make it possible to install patches and run Backup/Restore under that user).
  2. Run cmd.exe as Administrator and navigate to C:\Program Files\Micro Focus\Service Virtualization Server\Server\bin
  3. Run ConfigTool.exe with the following arguments (don't surround the encryption password with quotes):
    ConfigTool.exe server-setEncryptionPasswordForCurrentUser [EncryptionPassword]
  4. Now you can install patches under the currently logged account as well as you can use it to run Backup/Restore.

Labels:

How To-Best Practice
Comment List
Related
Recommended