Merge Registry
Verb:
MR
Description:
Merges the specified device filename. The device filename must be in REGEDIT format (analogous to regedit -s). The option username is used to change user specific registry values. The REDEDIT4 file must use HKEY_CURRENT_USER. WDM will change this to HKEY_USERS_USERSID.
Support:
- XPe Usage
- Continue if Script Command Fails: Yes
- Arguments:
- Local filename
- User profile [Optional]
- Examples:
MR "<regroot>\control_panel.reg" "user" (Merges control_panel.reg into 'user's' profile)
General Rules:
- The filename should include the complete path, defined with <regroot>.
- The filename specified must be a REGEDIT file.
- MR must be followed by the Reboot command (RB) for the changes to take effect.
- The optional username argument is used to change user specific registry values.
Note: The REDEDIT file must specify HKEY_CURRENT_USER. WDM will change this to HKEY_USERS_USERSID at runtime.
The WDM Agent runs in the system security context. Because of this, HKEY_CURRENT_USER for WDM is the system user, not the currently logged in user. To overcome this, a special username argument must exist that tells the agent to apply the changes to the specified user rather than the system user. The specified user must be logged into the box for this command to succeed. Note that the user profile name is used to resolve the hive location. The profile name and username can be different.