Preserve wireless and MSP settings during an OSupdate

During the OSupdate the device wireless \ MSP agents settings are removed, any idea how to preserve these settings during the update so after update the device gets on the network and rechecks in.