Issue
The settings for the powerJobs Processor job triggers are stored in the Vault options. When updating to a newer powerJobs Processor version or a newer Vault version the settings are usually kept.
In some cases it is possible that the settings are removed. For example when using powerJobs Processor v25.0.2 for Vault 2024, updating to Vault 2025 requires powerJobs Processor to be uninstalled first in order to install powerJobs Processor v25.0.2 for Vault 2025. Uninstalling powerJobs Processor removes the powerJobs Processor trigger settings
Solution
It is possible to export the trigger settings before the update and then importing them again. A Vault Administrator can run the following code to store the settings in "C:\Temp" and then import them again:
Import-Module powerVault
Open-VaultConnection
# Get the powerJobs trigger settings
$exportpowerJobsTriggerSettings = $vault.KnowledgeVaultService.GetVaultOption('POWERJOBS_TRIGGER_SETTINGS')
$exportpowerJobsTriggerSettingsV2 = $vault.KnowledgeVaultService.GetVaultOption('POWERJOBS_TRIGGER_SETTINGS_V2')
# Export the setting to C:\Temp
$exportpowerJobsTriggerSettings | Out-File -FilePath "C:\Temp\powerJobsTriggerSettings.txt"
$exportpowerJobsTriggerSettingsV2 | Out-File -FilePath "C:\Temp\powerJobsTriggerSettingsV2.txt"
# Read the settings from C:\Temp
$importpowerJobsTriggerSettings = Get-Content -Path "C:\Temp\powerJobsTriggerSettings.txt"
$importpowerJobsTriggerSettingsV2 = Get-Content -path "C:\Temp\powerJobsTriggerSettingsV2.txt"
# Import the settings into Vault
$vault.KnowledgeVaultService.SetVaultOption('POWERJOBS_TRIGGER_SETTINGS', $importpowerJobsTriggerSettings)
$vault.KnowledgeVaultService.SetVaultOption('POWERJOBS_TRIGGER_SETTINGS_V2', $importpowerJobsTriggerSettingsV2)