Error Message
---------------------------
Veeam Backup and Replication
---------------------------
ConfigStoreRootPath cluster parameter is not defined. We will not be able to process VMs with shared disks until you set this parameter using Set-ClusterParameter PowerShell cmdlet.
---------------------------
OK
---------------------------
Resolution
Execute these functions on a Node of the Target Cluster
# Install Microsoft Clustering Management
Function installClusteringManagment{
# Set PowerShell Gallery as Trusted to bypass prompts
$trustPSGallery=(Get-psrepository -Name 'PSGallery').InstallationPolicy
If($trustPSGallery -ne 'Trusted'){
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
}
# Adding Microsoft Cluster
if (!(get-module -Name "FailoverClusters") ){
# Install-WindowsFeature Failover-Clustering | out-null;
Install-WindowsFeature RSAT-Clustering-MGMT | out-null;
Install-WindowsFeature RSAT-Clustering-PowerShell | out-null;
# Import-Module FailoverClusters | out-null;
}
}

# Set ConfigStoreRootPath if it doesn't already exist
function setConfigStoreRootPath{
$configStoreRootPath=(Get-ClusterResource "Virtual Machine Cluster WMI" | Get-ClusterParameter ConfigStoreRootPath).Value
if (!($configStoreRootPath)){
$path = "C:\ClusterStorage\Volume1\Hyper-V\Shared"
mkdir $path
Get-ClusterResource "Virtual Machine Cluster WMI" | Set-ClusterParameter -Name ConfigStoreRootPath -Value $path
}
"ConfigStoreRootPath is currently set as $configStoreRootPath."
}

installClusteringManagment;
setConfigStoreRootPath;