I have the following xml file.
<Objects>
<Object>
<Property Name="Browser">Firefox</Property>
<Property Name="PDF">Adobe Reader</Property>
</Object>
I want to be able to update the word firefox using powershell script.
This is the powershell script that am working and is not working.
$xmlDoc = [XML](Get-Content "c:\Windows\personalsettings\PersonalSettings.xml")
foreach ($item in $xmlDoc.Objects.Object.Property)
{
$item.Name = 'Chrome'
}
$xmlDoc.Save("c:\Windows\personalsettings\PersonalSettings.xml")