diff --git a/lib/autoupdate.ps1 b/lib/autoupdate.ps1 index 705c767451..bd24e04015 100644 --- a/lib/autoupdate.ps1 +++ b/lib/autoupdate.ps1 @@ -365,7 +365,7 @@ function Update-ManifestProperty { } } elseif ($Manifest.$currentProperty -and $Manifest.autoupdate.$currentProperty) { # Update other property (global) - $autoupdateProperty = $Manifest.autoupdate.$currentProperty.PSObject.Copy() + $autoupdateProperty = $Manifest.autoupdate.$currentProperty $newValue = substitute $autoupdateProperty $Substitutions if (($autoupdateProperty.GetType().Name -eq 'Object[]') -and ($autoupdateProperty.Length -eq 1)) { # Make sure it's an array