Код:

Get-ChildItem "HKCU:\Software\Microsoft\Office\" -Recurse | ForEach-Object {
$obj = Get-ItemProperty $_.pspath
$prop = $obj | Get-Member -Type NoteProperty -ErrorAction SilentlyContinue | Foreach {$_.Name}
$prop | Where {$obj.$_ -match "GalRepBuilder.XLA"} | Foreach {
$obj | Set-ItemProperty -Name $_ "C:\PATH"
}
}