Encrypt the CONNECT service access token
- Last UpdatedNov 18, 2025
- 1 minute read
Note: This procedure is only required when the access token is used in conjunction with the File Import tool to migrate external data.
-
Select Start > Windows PowerShell.
Windows PowerShell opens.
-
Execute the following commands:
Note: You must have set up the Protection Rules in the MeasDataProtectorSettings.json file before the SecretProtector can be run. Perform these steps in the MeasurementAdvisor silo (%DNAInstallRoot%\MeasurementAdvisor\bin).
-
Enter cd $env:DNAInstallRoot\MeasurementAdvisor\bin.
The above command changes to the directory where the executables are installed. -
Enter .\SecretProtector.exe protect "<advanced service access token copied from AVEVA CONNECT>".
The above command outputs the protected string on the console, and creates and stores the key ring information in %DNADataRoot%\MeasurementAdvisor\config\keyring.
-
Copy the protected string from the output, and paste it into the EncryptedServiceAccessToken section of the MeasDataProtectorSettings.json file. For more information, see Configure MeasDataProtectorSettings.json.
-