Is it a WES unit?
If yes you need to first either disable the Write Filter and then enable the Write Filter after you made those changes or use the File-Based Write Filter and add the changed files/registry to it.
Otherwise no change will be saved after a reboot when the Write Filter is enabled.