Delete Registry Value
Verb:
DR
Description:
Deletes the specified device registry key. The option username is used to change user specific registry values. The REDEDIT file must use HKEY_CURRENT_USER. WDM will change this to HKEY_USERS_USERSID
Support:
- XPe Usage
- Continue if Script Command Fails: Yes
- Arguments:
- Device key string
- User profile [Optional]
- Examples:
DR "HKEY_CURRENT_USER\CONTROL PANEL\COLORS\background" "user" (Deletes specified registry key from 'user's' profile)
General Rules:
Caution: Use care with this command. Once executed, it cannot be undone.
- The name of the registry hive should not be abbreviated.
- 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's profile name is used to resolve the hive location. The profile name and username can be different.
- DR must be followed by the Reboot command (RB) for the changes to take effect.