I want to replace a template of data $Arraytest with actual data from an XML file Arraytest2.
So I to replace the $Arraytest.Values with those from $Arraytest2.Values and save them for further process.
$Arraytest = @{
TLC = 'TLC'
Crew3LC = 'Crew3LC'
MyText = 'MyText'
}
$Arraytest2 = @{
TLC = 'FWE'
Crew3LC = 'KMU'
MyText = 'Hello'
}
foreach ($Value in $Arraytest) {
$Value.Values
}
$arraytestwill also be present in$arraytest2.Clone()somehow. Added as an answer instead.