Delete Registry Branch
Verb:
DB
Description:
Deletes the specified registry branch.
Support:
- XPe Usage
- Continue if Script Command Fails: Yes
- Arguments:
- Device key string
- User profile (not used with CE) [Optional]
- Examples:
DB "HKEY_LOCAL_USER\Printers" "user" (Deletes specified registry branch from user 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 profile name is used to resolve the hive location. The profile name and username can be different.