key not needed

pull/702/head
Romain 2024-09-17 23:31:05 +02:00
parent a64eda4ac7
commit 3cc8d7950e
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ function Update-WAU {
$properties = Get-ItemProperty -Path $sourcePath $properties = Get-ItemProperty -Path $sourcePath
foreach ($property in $properties.PSObject.Properties) { foreach ($property in $properties.PSObject.Properties) {
#Check if the value name starts with "WAU_" #Check if the value name starts with "WAU_"
if ($property.Name -like "WAU_*") { if ($property.Name -like "WAU_*" -and $property.Name -notlike "WAU_PostUpdateActions*") {
#Copy the value to the destination key #Copy the value to the destination key
Set-ItemProperty -Path $destinationPath -Name $property.Name -Value $property.Value Set-ItemProperty -Path $destinationPath -Name $property.Name -Value $property.Value
Write-ToLog "$($property.Name) saved." Write-ToLog "$($property.Name) saved."